I'm seeing a rather odd behaviour when plotting (using mpl 3405):
- create a figure with two subplots
- plot something on each axis
- plot an extra something on the first axis USING A SYMBOL
- set axis off
- show()
Result: the second plot won't be shown

However, the second plot will be shown if I follow the same process
without using a symbol, or if I don't switch off the axes.

To illustrate, consider the following code:

from pylab import figure, rand, show
fig = figure()
ax1 = fig.add_subplot(121)
ax2 = fig.add_subplot(122)
ax1.plot(rand(100))
ax1.plot([50, 60], [.5, .6], '^')
ax2.plot(rand(100))
for ax in fig.axes: ax.set_axis_off()
show()

The second plot (ax2) is not shown. Now, if line 8 is commented, or if a
symbol is not used in line 6, as in:
ax1.plot([50, 60], [.5, .6])
then the two plots are shown as expected.

Looks like a bug to me, right?

Regards,
Antonio

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to