SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Imara J. <im...@gm...> - 2006年03月29日 20:08:41
Hi there,
I am using a 'for loop' to generate multiple scatter plots from my data. S=
o
far, so good.
I would like to have consistent xticks and yticks for each scatter plot.
However, it seems that when I define xticks and yticks (remains the same fo=
r
each scatter plot), I get different xticks and yticks for each scatterplot
depending on the data.
How can I make the xticks and yticks consistent over ALL my scatterplots,
regardless of the data used to generate them?
Thanks in advance!
From: John H. <jdh...@ac...> - 2006年03月29日 20:19:51
>>>>> "Imara" == Imara Jarrett <im...@gm...> writes:
 Imara> Hi there, I am using a 'for loop' to generate multiple
 Imara> scatter plots from my data. So far, so good.
 Imara> I would like to have consistent xticks and yticks for each
 Imara> scatter plot. However, it seems that when I define xticks
 Imara> and yticks (remains the same for each scatter plot), I get
 Imara> different xticks and yticks for each scatterplot depending
 Imara> on the data.
 Imara> How can I make the xticks and yticks consistent over ALL my
 Imara> scatterplots, regardless of the data used to generate them?
some thing like:
xvals = 1,2,3
yvals = 4,5,6
for data in mydata:
 fig = figure(1)
 ax = fig.add_subplot(111)
 ax.scatter(blah, blah, data)
 ax.set_xticks(xvals)
 ax.set_yticks(yvals)
 fig.savefig('myfig')
 close(1)
 
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 によって変換されたページ (->オリジナル) /