Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor plotting of views #1550

Conversation

swsrkty
Copy link
Collaborator

@swsrkty swsrkty commented Sep 4, 2022

No description provided.


# Setup the plot.
self.update_vertical_extent_from_settings(init=True)

self.numlabels = numlabels
self.ax2 = self.ax.twinx()
self.ax.patch.set_facecolor("None")
self.ax2 = self.myfig.ax.twinx()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the ax2 be part of the MySideViewFigure class?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, you have added it to the correct class already. This must be removed.

@joernu76 joernu76 merged commit c4b29c4 into Open-MSS:GSOC2022-SreelakshmiJayarajan Sep 20, 2022
joernu76 pushed a commit that referenced this pull request Nov 21, 2022
* Refactoring Side View

* Fixing blank line

* Fixing errors in plotting Side View and refactoring Linear View

* Empty-Commit

* Empty-Commit

* Testing Top view in plot module

* Testing Top View in plot module to use MyTopViewFigure class

* Using getBBOX()

* Using get_plot_size_in_px()

* Testing Side view and Linear view in plot module

* Adding tight layout for side view

CLI script and documentation (#1598)

* CLI script and documentation

* Updating plot module

* Adding template for plot module

* Fixes in documentation and adding template for plot module

* Fixing error in template of plot module

* Adding testing for mssautoplot

* Adding template and fixing errors

* Fixing errors in tests

* Fixing errors in mssautoplot and updating mpl_pathinteractor module

* Removing test_mssautoplot.py

* Fixing flake8 errors
joernu76 pushed a commit that referenced this pull request Nov 21, 2022
* Refactoring Side View

* Fixing blank line

* Fixing errors in plotting Side View and refactoring Linear View

* Empty-Commit

* Empty-Commit

* Testing Top view in plot module

* Testing Top View in plot module to use MyTopViewFigure class

* Using getBBOX()

* Using get_plot_size_in_px()

* Testing Side view and Linear view in plot module

* Adding tight layout for side view

CLI script and documentation (#1598)

* CLI script and documentation

* Updating plot module

* Adding template for plot module

* Fixes in documentation and adding template for plot module

* Fixing error in template of plot module

* Adding testing for mssautoplot

* Adding template and fixing errors

* Fixing errors in tests

* Fixing errors in mssautoplot and updating mpl_pathinteractor module

* Removing test_mssautoplot.py

* Fixing flake8 errors

Work by Joern Ungermann:

* fix flake8 and minor bugs

    Co-authored-by: Joern Ungermann <j.ungermann@fz-juelich.de>
joernu76 pushed a commit that referenced this pull request Nov 21, 2022
* Refactoring Side View

* Fixing blank line

* Fixing errors in plotting Side View and refactoring Linear View

* Empty-Commit

* Empty-Commit

* Testing Top view in plot module

* Testing Top View in plot module to use MyTopViewFigure class

* Using getBBOX()

* Using get_plot_size_in_px()

* Testing Side view and Linear view in plot module

* Adding tight layout for side view

CLI script and documentation (#1598)

* CLI script and documentation

* Updating plot module

* Adding template for plot module

* Fixes in documentation and adding template for plot module

* Fixing error in template of plot module

* Adding testing for mssautoplot

* Adding template and fixing errors

* Fixing errors in tests

* Fixing errors in mssautoplot and updating mpl_pathinteractor module

* Removing test_mssautoplot.py

* Fixing flake8 errors

Work by Joern Ungermann:

* fix flake8 and minor bugs

    Co-authored-by: Joern Ungermann <j.ungermann@fz-juelich.de>
joernu76 pushed a commit that referenced this pull request Nov 21, 2022
* Refactoring Side View

* Fixing blank line

* Fixing errors in plotting Side View and refactoring Linear View

* Empty-Commit

* Empty-Commit

* Testing Top view in plot module

* Testing Top View in plot module to use MyTopViewFigure class

* Using getBBOX()

* Using get_plot_size_in_px()

* Testing Side view and Linear view in plot module

* Adding tight layout for side view

CLI script and documentation (#1598)

* CLI script and documentation

* Updating plot module

* Adding template for plot module

* Fixes in documentation and adding template for plot module

* Fixing error in template of plot module

* Adding testing for mssautoplot

* Adding template and fixing errors

* Fixing errors in tests

* Fixing errors in mssautoplot and updating mpl_pathinteractor module

* Removing test_mssautoplot.py

* Fixing flake8 errors

Work by Joern Ungermann:

* fix flake8 and minor bugs

    Co-authored-by: Joern Ungermann <j.ungermann@fz-juelich.de>
joernu76 pushed a commit that referenced this pull request Nov 21, 2022
* Refactoring Side View

* Fixing blank line

* Fixing errors in plotting Side View and refactoring Linear View

* Empty-Commit

* Empty-Commit

* Testing Top view in plot module

* Testing Top View in plot module to use MyTopViewFigure class

* Using getBBOX()

* Using get_plot_size_in_px()

* Testing Side view and Linear view in plot module

* Adding tight layout for side view

CLI script and documentation (#1598)

* CLI script and documentation

* Updating plot module

* Adding template for plot module

* Fixes in documentation and adding template for plot module

* Fixing error in template of plot module

* Adding testing for mssautoplot

* Adding template and fixing errors

* Fixing errors in tests

* Fixing errors in mssautoplot and updating mpl_pathinteractor module

* Removing test_mssautoplot.py

* Fixing flake8 errors

Work by Joern Ungermann:

* fix flake8 and minor bugs

    Co-authored-by: Joern Ungermann <j.ungermann@fz-juelich.de>
joernu76 pushed a commit that referenced this pull request Nov 21, 2022
* Refactoring Side View

* Fixing blank line

* Fixing errors in plotting Side View and refactoring Linear View

* Empty-Commit

* Empty-Commit

* Testing Top view in plot module

* Testing Top View in plot module to use MyTopViewFigure class

* Using getBBOX()

* Using get_plot_size_in_px()

* Testing Side view and Linear view in plot module

* Adding tight layout for side view

CLI script and documentation (#1598)

* CLI script and documentation

* Updating plot module

* Adding template for plot module

* Fixes in documentation and adding template for plot module

* Fixing error in template of plot module

* Adding testing for mssautoplot

* Adding template and fixing errors

* Fixing errors in tests

* Fixing errors in mssautoplot and updating mpl_pathinteractor module

* Removing test_mssautoplot.py

* Fixing flake8 errors

Work by Joern Ungermann:

* fix flake8 and minor bugs

    Co-authored-by: Joern Ungermann <j.ungermann@fz-juelich.de>
joernu76 pushed a commit that referenced this pull request Nov 22, 2022
* Refactoring Side View

* Fixing blank line

* Fixing errors in plotting Side View and refactoring Linear View

* Empty-Commit

* Empty-Commit

* Testing Top view in plot module

* Testing Top View in plot module to use MyTopViewFigure class

* Using getBBOX()

* Using get_plot_size_in_px()

* Testing Side view and Linear view in plot module

* Adding tight layout for side view

CLI script and documentation (#1598)

* CLI script and documentation

* Updating plot module

* Adding template for plot module

* Fixes in documentation and adding template for plot module

* Fixing error in template of plot module

* Adding testing for mssautoplot

* Adding template and fixing errors

* Fixing errors in tests

* Fixing errors in mssautoplot and updating mpl_pathinteractor module

* Removing test_mssautoplot.py

* Fixing flake8 errors

Work by Joern Ungermann:

* fix flake8 and minor bugs

    Co-authored-by: Joern Ungermann <j.ungermann@fz-juelich.de>
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.

2 participants