|
From: Antonio G. <Ant...@ki...> - 2007-06-22 19:21:13
|
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 |