SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Emmanuel <emm...@fa...> - 2007年04月29日 13:52:08
Hi,
I'd like to know if it is possible to control size of subplots let say
control the ratio between x and y axis in length units (not in units of x
and y). For example, I'd like to plot 2 graphics with one rectangular ratio
y:x 1:3 and the second squared 1:1.
example :
import pylab
x = pylab.nx.mlab.rand(10)
y = pylab.nx.mlab.rand(10)
ax=pylab.subplot(121)
ax.scatter(x,y)
#set_aspect is for x and y units not geometrical dimension of the subplot...
#ax.set_aspect(3)
pylab.subplot(122)
pylab.scatter(x,y)
pylab.show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /