Gökhan SEVER-2 wrote:
> 
> Oh these busy chemical compound plots :) Are those results of gas
> chromatography analysis?
> 
> Something like below produces a nice fully plotted output here. Could you
> give it a try?
> 
> import matplotlib.pyplot as plt
> plt.plot(range(100))
> locs, labels = plt.xticks(range(100), range(100))
> plt.setp(labels, rotation=90, fontsize=7)
> plt.show()
> 
> 
> -- 
> Gökhan
> 


Gokhan,

Your suggestion works great. I guess the MaxNLocator approach I have been
using will place __up__to__ N ticks but not necessarily N ticks?

And yes, these chemical profiles are from GCMS and other devices/techniques.
I added upper X axis tick labels so you know a given chemical species' name
and number; I chose to only have one legend to keep the clutter down as much
as possible; I position the upper X axis labels in or outside the plot
depending on whether the plot title exists. Luckily, I don't imagine having
to deal with more species than 105 any time soon. Thanks again! Here is the
improved plot (sorry for the pink background, I am not sure why it is
showing up that way):


http://old.nabble.com/file/p27927991/PMF2BasecaseProfiles.jpeg 


-----
Josh Hemann
Statistical Advisor 
http://www.vni.com/ Visual Numerics 
jhemann at vni dizzot com 

-- 
View this message in context: 
http://old.nabble.com/Is-there-a-maximum-number-of-x-tickmarks--tp27924845p27927991.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to