Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add a 'useMathText' param to method 'ticklabel_format' #6337
Conversation
mdboom
added the
needs_review
label
Apr 26, 2016
|
Now we can do like: plt.plot(1, 10000, 2, 20000, 'ro')
ax = plt.gca()
ax.ticklabel_format(scilimits=(-3, 3), useMathText=True)
plt.show()or: plt.plot(1, 10000, 2, 20000, 'ro')
ax = plt.gca()
fmt = ax.yaxis.get_major_formatter()
fmt.set_useMathText(True)
#or fmt.useMathText = True
fmt.set_powerlimits((-3, 3))
plt.show() |
|
It would be nice to be more PEP8-y on the name, but I don't know if we want to just leave it to be consistent with the existing name. Or perhaps some deprecation notice would be possible on the original name... |
tacaswell
added this to the
2.1 (next point release)
milestone
Apr 26, 2016
|
Hi, @QuLogic . I'm not sure I understand you. Can you explain more? What should I do? |
|
The comment is not a suggestion for you; it's a question for the other devs. |
|
making the names more pythonic is a good fight, but one that is beyond the scope of this PR. I think the standard practice in these cases is to stay consistent with the local naming and do the renaming/deprecation in a separate PR. |
gepcel commentedApr 26, 2016
As discussed in #6330. Can anyone examine this?