subplot not working properly

Bug #39109 reported by dave pretty
4
Affects Status Importance Assigned to Milestone
matplotlib (Ubuntu)
Fix Released
Medium
Rolf Leggewie

Bug Description

As documented in:
http://matplotlib.sourceforge.net/matplotlib.pylab.html#-subplot
the syntax for subplot is subplot(x,y,z)

in dapper, the short version subplot(xyz) [without commas] works, but not subplot(x,y,z)

this is a problem as it limits the number of subplots to 9.

both versions ( with and without commas) work in breezy.

I've tried various backends ( http://matplotlib.sourceforge.net/backends.html ) but the problem is independent of backend.

Revision history for this message
dave pretty (david-pretty) wrote :

a little more info:

(in dapper)

the following works fine:

import pylab as pl
pl.subplot(211)
pl.plot([1,2,3],[1,2,3],'o')
pl.subplot(212)
pl.plot([3,2,1],[3,2,1],'x')
pl.show()

but here, the second subplot doesn't do anything so the second plot is plotted on top of the first
import pylab as pl
pl.subplot(2,1,1)
pl.plot([1,2,3],[1,2,3],'o')
pl.subplot(2,1,2)
pl.plot([3,2,1],[3,2,1],'x')
pl.show()

Revision history for this message
mukesh agrawal (launchpad-net-mukesh) wrote :
Revision history for this message
Rolf Leggewie (r0lf) wrote :

any release past edgy should have this fix, then.

Closing

Changed in matplotlib:
assignee: nobody → r0lf
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.