Prev: Yet Another MySQL Problem
Next: dbf files and indexes
From: speedy66 on 27 May 2010 12:27 I am plotting data that depends on time and height using pcolor. The data is collected every 30 minutes, so there will be data at 1PM and again at 1:30PM for instance. My question deals with how to get xticks to show up only for time values that actually exist in the dataset. As an example, ticks will currently appear at a time that corresponds to 1:24PM which is not a time where data exists. These values change as I zoom in also. I'm using matplotlib.pyplot. I've tried searching around for the answer, but have not been successful. Thanks in advance. -- View this message in context: http://old.nabble.com/matplotlib%3A-show-xticks-only-for-discrete-times-tp28696606p28696606.html Sent from the Python - python-list mailing list archive at Nabble.com.
From: Mark Lawrence on 27 May 2010 14:07 On 27/05/2010 17:27, speedy66 wrote: > > I am plotting data that depends on time and height using pcolor. The data is > collected every 30 minutes, so there will be data at 1PM and again at 1:30PM > for instance. > > My question deals with how to get xticks to show up only for time values > that actually exist in the dataset. As an example, ticks will currently > appear at a time that corresponds to 1:24PM which is not a time where data > exists. These values change as I zoom in also. I'm using > matplotlib.pyplot. > > I've tried searching around for the answer, but have not been successful. > > Thanks in advance. > > See http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xticks matplotlib also has it's own mailing list. HTH Mark Lawrence
|
Pages: 1 Prev: Yet Another MySQL Problem Next: dbf files and indexes |