Benjamin Root-2 wrote:
> 
> 
> Note that will not change the number of ticks already established for the
> axis.  For that, you can use set_xticks(), which accepts a list of values
> where to set the tick marks (you should probably use set_xticklabels()
> after
> set_xticks()).  Note that you will need to have access to the axes object.
> For example:
> 
> 
> import matplotlib.pyplot as plt
> 
> fig = plt.figure()
> ax = fig.gca()         # <--- the axes object I was talking about...
> ax.scatter([], [])
> ax.set_xticks([0.2, 0.4, 0.6, 0.8])
> ax.set_xticklabels(['A', 'B', 'C', 'D'])
> plt.show()
> 
> 
> 
> 

Well this just plots 2 different imagens now, one with only the axis, and
the other with the data and a default axis
-- 
View this message in context: 
http://old.nabble.com/Many-basic-questions-i-cant-find-solution-tp31088840p31104901.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to