Skip to content

ENH: Printing option and "crosshair" for the backends #16180

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

Closed
jakobjakobson13 opened this issue Jan 10, 2020 · 5 comments
Closed

ENH: Printing option and "crosshair" for the backends #16180

jakobjakobson13 opened this issue Jan 10, 2020 · 5 comments

Comments

@jakobjakobson13
Copy link

Dear developers,

you are doing a great job with the matplotlib package, but I would like to propose two minor improvements:

  • An optional "crosshair" for the graphic backend. Even though you get the information in the lower left corner, I would find a tool that shows a vertical line to the x-axis and a horizontal line to the y-axis according to the current cursor position quite useful. Possible applications would be that you have multiple stacked 1D-spectra and you want to check easily if their maxima/minima or something else falls on the same x-value without pointing each point out.
  • An print button on the graphical backend. That would saves you the additional step of printing the file out of the file manager (which I can't do anyway) or opening it with some preview program and print it from the preview program.

If you don't agree to this suggestions, that's fine for me and you can close the bug report without any further discussion.

@jklymak
Copy link
Member

jklymak commented Jan 10, 2020

For the first, see https://matplotlib.org/3.1.1/gallery/misc/cursor_demo_sgskip.html. maybe mplcursors?

For the second, printing to an actual printer across multiple platforms is a morass that I dont' think we need to wade into.

@timhoffm
Copy link
Member

Printing to an actual printer across multiple platforms is a morass that I dont' think we need to wade into.

I totally agree with that. Please write the content to a file format of your choice and use a suitable viewer of your choice to print the content.

@ImportanceOfBeingErnest
Copy link
Member

Possible actionable item here: The cursor demo should mention the option to use matplotlib.widgets.Cursor.

@timhoffm
Copy link
Member

Cursor demo is rewritten in #15644. I will check how to integrate that.

@jakobjakobson13
Copy link
Author

Thanks for addressing this bug report so quickly. I'm fine with your responses and if you want to close the bug report, go ahead.

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

4 participants