Skip to content

Stereogram plot#28

Open
Souza-junior wants to merge 4 commits intofatiando:mainfrom
Souza-junior:stereogram_plot
Open

Stereogram plot#28
Souza-junior wants to merge 4 commits intofatiando:mainfrom
Souza-junior:stereogram_plot

Conversation

@Souza-junior
Copy link
Copy Markdown
Member

Relevant issues/PRs:

These functions differ slightly from Harmonica's due to the convention in
paleomagnetism, where a positive vector is defined as downward.
For now the function only plots lines
@leouieda
Copy link
Copy Markdown
Member

@Souza-junior @YagoMCastro this would be much better as a matplotlib projection. That way matplotlib has tools to help draw grids, set ticks, etc. See https://matplotlib.org/stable/api/projections_api.html

@leouieda
Copy link
Copy Markdown
Member

Tests are failing because we need add matplotlib as a run-time dependency to pyproject.toml. The minimum required version should be a minor release from at least 2 years ago. Check the matplotlib changelog to see which one.

@leouieda
Copy link
Copy Markdown
Member

For testing, use the pytest-mpl plugin. It needs to be added to the environment.yml and env/requirements-test.txt files.

@leouieda
Copy link
Copy Markdown
Member

The matplotlib projection stuff could be a follow up PR later. @YagoMCastro could you open an issue for that, please?

@YagoMCastro
Copy link
Copy Markdown
Contributor

Thank you for the great work on this. I noticed that there is a class that currently contain only a single function. In these cases, it might be more efficient to substitute the class with just a standalone function. This could help simplify the code and improve readability. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants