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

How should Plot preserve the previous configuration? #22

Open
kojix2 opened this issue Apr 6, 2020 · 1 comment
Open

How should Plot preserve the previous configuration? #22

kojix2 opened this issue Apr 6, 2020 · 1 comment

Comments

@kojix2
Copy link
Member

kojix2 commented Apr 6, 2020

  • A new instance of GR::Plot is created each time. Previous settings are not obtained. You have to manage it yourself.
  • A new instance of GR::Plot is created each time. It refers to the previous settings.
  • A new instance of GR::Plot is created. One instance is used repeatedly. Multiple instances may exist at the same time.
  • A new instance of GR::Plot is created. One instance is used repeatedly. It is desirable to have only one instance.
  • There is an instance that holds the settings out of the Plot instance itself.
  • Stop adding class methods to the GR module and make Plot more object-oriented.
  • Choose the wrong way to maintain state in the module for some benefit
  • None of the above
@kojix2
Copy link
Member Author

kojix2 commented Apr 23, 2020

So far, I select the first approach for subplot or hold method.

  • Settings are not obtained. You have to manage it yourself.

The reason is as follows.

  • This approach is easy (for me) to implement.
  • You can fine-tune the layout of the figure because you get the actual values.

See https://github.com/red-data-tools/GR.rb/blob/master/examples/fast_multiplot.rb

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

No branches or pull requests

1 participant