SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Mark B. <ma...@gm...> - 2005年06月30日 17:59:16
When I create a plot that is smaller than the figure window, the tickmark=
=20
locator seems to locate the ticks based on the figure size, not the subplot=
=20
size. I tried this several ways.
figure(figsize=3D(3,3))
plot([1000,2000,3000],[1,2,3])
subplots_adjust(right=3D0.5)
This messes up the ticklabels, especially on the x-axis. It should resample=
=20
and only plot a couple of ticks, but I don't know the command to update the=
=20
ticks. The same happens when I resize with the tool on the toolbar. Almost=
=20
the same happens when I use the axes command from the get go:
figure(figsize=3D(3,3))
axes( [.1,.1,.4,.8] )
plot([1000,2000,3000],[1,2,3])
This give fine looking y labels, but the x-axis is still messed up. Does it=
=20
maybe always plot 4 ticks on each axis by default? Should it maybe check if=
=20
there is space for that?
Any suggestions are appreciated,
Thanks,
Mark
From: John H. <jdh...@ac...> - 2005年07月02日 15:05:37
>>>>> "Mark" == Mark Bakker <ma...@gm...> writes:
 Mark> When I create a plot that is smaller than the figure window,
 Mark> the tickmark locator seems to locate the ticks based on the
 Mark> figure size, not the subplot size. I tried this several
 Mark> ways.
Hey Mark, this is a bug. I find the problem disappears when I force a
redraw by making a small change in figure size. Could you file a sf
bug report?
Thanks!
JDH
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 によって変換されたページ (->オリジナル) /