-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Documentation metadata (release version) does not correspond with some of the 'younger' documentation content #5649
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
Comments
Can you give an example? I don't really understand what you mean. |
I faced few minor problems wile running examples from documentation. Here is one of them explained. In both Anaconda matplotlib v1.5.0 pre-built for Win x64, and apt-get matplotlib v1.5.0 pre-built for Ubuntu 14.04 it produces the following error. (Ubuntu file is used in the following text)
In this (Ubuntu) scale.py file (lines 478 - 482)
In the github master (lines 578 - 583)
In the release v1.5.0 https://github.com/matplotlib/matplotlib/releases/tag/v1.5.0
Which means it's the problem on both Anaconda and apt-get sides, and therefore I submitted wrong issue report. |
The version in http://matplotlib.org/users/pyplot_tutorial.html#logarithmic-and-other-nonlinear-axis should always be build with the latest release. The version at http://matplotlib.org/devdocs/users/pyplot_tutorial.html#logarithmic-and-other-nonlinear-axis is build automatically with latest master The version at http://matplotlib.org/1.5.0/users/pyplot_tutorial.html#logarithmic-and-other-nonlinear-axis is always build with 1.5.0 |
@jenshnielsen , thank you for clarification I don't know how the team approaches it, but I found no URLs directing to docs of specific release, e.g. |
The links to the versioned documentation is on http://matplotlib.org/ under the heading Documentation. It would be nice if we had a drop down switcher similar to the main python documentation but we don't at the moment. |
The Logarithmic and other nonlinear axis example is not in the pyplot tutorial for version 1.4.3 because it wasn't added until #3753 which is not in 1.4.3 |
any update? Because I got the same error. It seems be one year since the error was reported. |
@liyun831229 Can you expand on what you mean? |
I tried the example from:(http://matplotlib.org/users/pyplot_tutorial.html). ValueError Traceback (most recent call last)
<ipython-input-15-516048c92d8b> in <module>()
36 plt.subplot(224)
37 plt.plot(x, y)
---> 38 plt.yscale('logit')
39 plt.title('logit')
40 plt.grid(True)
c:\python34\lib\site-packages\matplotlib\pyplot.py in yscale(*args, **kwargs)
1558 """
1559 ax = gca()
-> 1560 ax.set_yscale(*args, **kwargs)
1561 draw_if_interactive()
1562
c:\python34\lib\site-packages\matplotlib\axes\_base.py in set_yscale(self, value, **kwargs)
2852 if value.lower() == 'log' and 'nonposy' not in kwargs.keys():
2853 kwargs['nonposy'] = 'clip'
-> 2854 self.yaxis._set_scale(value, **kwargs)
2855 self.autoscale_view(scalex=False)
2856 self._update_transScale()
c:\python34\lib\site-packages\matplotlib\axis.py in _set_scale(self, value, **kwargs)
703
704 def _set_scale(self, value, **kwargs):
--> 705 self._scale = mscale.scale_factory(value, self, **kwargs)
706 self._scale.set_default_locators_and_formatters(self)
707
c:\python34\lib\site-packages\matplotlib\scale.py in scale_factory(scale, axis, **kwargs)
503
504 if scale not in _scale_mapping:
--> 505 raise ValueError("Unknown scale type '%s'" % scale)
506
507 return _scale_mapping[scale](axis, **kwargs)
ValueError: Unknown scale type 'logit' #Here is the code: import numpy as np
import matplotlib.pyplot as plt
y = np.random.normal(loc=0.5, scale=0.4, size=1000)
y = y[(y > 0) & (y < 1)]
y.sort()
x = np.arange(len(y))
plt.figure(1)
plt.subplot(221)
plt.plot(x, y)
plt.yscale('linear')
plt.title('linear')
plt.grid(True)
plt.subplot(222)
plt.plot(x, y)
plt.yscale('log')
plt.title('log')
plt.grid(True)
plt.subplot(223)
plt.plot(x, y - y.mean())
plt.yscale('symlog', linthreshy=0.05)
plt.title('symlog')
plt.grid(True)
plt.subplot(224)
plt.plot(x, y)
plt.yscale('logit')
plt.title('logit')
plt.grid(True)
plt.show() |
and what version of matplotlib do you have installed? On Wed, Sep 21, 2016 at 3:08 PM, liyun831229 notifications@github.com
|
import matplotlib On Wed, Sep 21, 2016 at 3:33 PM, liyun831229 notifications@github.com
|
It's 1.4.3. |
It sounds like either you have some path variables or Windows settings that are overriding what Anaconda sets, or your Anaconda environment is not activated. |
It looks like you have gotten your enviroment crossed. I suggest uninstalling any other versions of python you have installed. Failing that, this probably should go to the conda support lists. |
Thanks for your suggestions. I will try to uninstall the other python to see if it works. |
at least I got this impression after trying to run some of the docs examples on pre-built matplotlib v1.5.0
This issue relatively soon would become obsolete with the release of v2.0, but unless it is done on purpose, it may continue as a minor issue.
The text was updated successfully, but these errors were encountered: