-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
None linestyle fix #5695
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
Closed
None linestyle fix #5695
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moved __call__ functionality in subclasses to parent class Slight PEP8 cleanup
Fixes Py2k compatibility
Add six import for consistency
The scale passed to the `pprint_val` method needs to also be scaled by the log so that the range used to format the tick labels matches the actual range of the tick labels (not the underlying values). reported via http://stackoverflow.com/questions/33975758/matplotlib-logformatterexponent-e-in-the-exponent-labels-of-cbar
Makes sure that there are never trailing 'e' with no exponent.
Code used to generate the test data to establish bench mark. First print out is human-readable, second is for testing import itertools import matplotlib.ticker as mticker import numpy as np domains = sorted([1e-3, 1.5e-2, 1e6, 100, 5, .5]) float_values = sorted([np.pi * (10**i) for i in range(-5, 6)]) int_values = sorted([1 * (10 ** i) for i in range(-5, 6)]) fmt = mticker.LogFormatter() print() for d in domains: print('Domain ', d) for f in float_values: print(' {: >10.7f}: {: <10}'.format(f, fmt.pprint_val(f, d))) for f in int_values: print(' {: >10g}: {: <10}'.format(f, fmt.pprint_val(f, d))) print() print() print(',\n'.join([' ({v:.10g}, {d!r}, {res!r})'.format( v=f, d=d, res=fmt.pprint_val(f, d)) for d, f in itertools.product( domains, float_values + int_values)]))
Replace the old label, which included the legthy repr of the axes object, to a nicer label which emphasizes the title or axes labels (depending on what is present). Also drops the use of the label of the Axes object itself, for which I haven't found any other reference or use in general. (Another option would be to use solely `Axes.get_label()` when defined, as this doesn't seem to have any other use.) See #5468.
FIX: formatting in LogFormatterExponent
qt: raise each new window
Fix #5670. No double endpoints in Path.to_polygon
Nicer axes names in selector for figure options.
DOC: Update banner logo on main website
Fix errorbar extension arrows
Remove setup.py tests and adapt docs to use tests.py
DOC: Add documentation for mpl_toolkits.axes_grid1.inset_locator
Fix #5573: Use SVG in docs
This patch allows the user to interactively set an image's colormap from the axes and lines (and now images) parameters editor (in the Qt backend). Colormaps are listed from those registered with matplotlib.cm. Colorbars seem to be handled properly.
Image options
DOC: Improved documentation for FuncFormatter formatter class
if Patch.linestyle is 'none', 'None', ' ', '' or None then no edge rendered (as in Line2D).
NO!!!! |
You can force-push a new commit to this branch if you did want to open the PR against 2.0.x |
I create a new PR, #5696 |
No worries, everyone was new once! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now if patch.linestyle is "none", "None", " ", "" or None then no edge rendered (as in Line2D).
This fix #5519 .