[Matplotlib-users] Specify plot xticks

2011-11-28 Thread Shankararaman Ramakrishnan
Hello,

 

I am fairly new to Matplotlib and appreciate your help with my question:


 

I am looking to generate a time series trend plots and include as my
xtick labels a selective list of strings. For ex: Month/Year label for
data corresponding to the 1st day of each month. I may be plotting 365
days of data but want to show only 12 xtick labels. 

 

Would it be possible to specify grid lines for every 7 days of data for
instance? This makes the grid line locations different from the xtick
label locations. 

 

I am sure there is support for such a feature in Matplotlib. I did look
through the docs/forums but could not find much help.

Any suggestions will be much appreciated. 

 

Thanks,
Shankar

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] plot_date() runtime error

2012-01-26 Thread Shankararaman Ramakrishnan
Hi,

 

I have been trying to leverage plot_date() to generate time trends. I
seem to run into the following runtime error and don't have much
insight as to why this is happening. Specifically, I don't quite see why
the function is attempting to set the lower bound to 0001-01-01 UTC when
my x-axis starts only from day number 729390. 

I am using Python 2.4 and Matplotlib 1.0.1

 

In [131]: date_num = date2num(dates)

 

In [132]: date_num

Out[132]: 

array([ 729390.,  729391.,  729392.,  729393.,  729394.,  729395.,

729396.,  729397.,  729398.,  729399.])

 

In [133]: plot_date(date_num,range(10))

 

RuntimeError: RRuleLocator estimated to generate 2012 ticks from
0001-01-01 00:00:00+00:00 to 2012-02-04 17:46:21.028099+00:00: exceeds
Locator.MAXTICKS * 2 (2000)

 

 

Any help will be much appreciated.

 

Thanks,
Shankar

 

 

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users