From: Philippe S. <phi...@pr...> - 2004-04-13 13:07:14
|
Hello, I'm new to matplotlib and this list. Congratulation to the developers of this great package, I've been looking for a long while for a good quality plotting package. I would like to plot time in hours on the x axis, with one minor grid per 15 minutes and one major grid per hour, but I can only see 10 fixed grids on all tutorial and documentation. How can I configure that? -- Philippe Strauss |
From: John H. <jdh...@ac...> - 2004-04-13 14:34:48
|
>>>>> "Philippe" == Philippe Strauss <phi...@pr...> writes: Philippe> Hello, I'm new to matplotlib and this list. Philippe> Congratulation to the developers of this great package, Philippe> I've been looking for a long while for a good quality Philippe> plotting package. Philippe> I would like to plot time in hours on the x axis, with Philippe> one minor grid per 15 minutes and one major grid per Philippe> hour, but I can only see 10 fixed grids on all tutorial Philippe> and documentation. Philippe> How can I configure that? No support for minor and major ticks yet, but I can add it pretty quickly, probably for the next release due out soon. I just need a little information. How do grids interact with major and minor ticks? I know major ticks are generally bigger and are labeled, and minor ticks are smaller and not labeled, but I don't know how grid lines are usually handled with respect to major and minor ticks. If you have a link to a canonical figure which uses major and minor ticks, I can follow that example. JDH |
From: Philippe S. <phi...@pr...> - 2004-04-13 15:52:30
|
From: "John Hunter" <jdh...@ac... > >>>>> "Philippe" == Philippe Strauss <phi...@pr...> writes: > > Philippe> Hello, I'm new to matplotlib and this list. > Philippe> Congratulation to the developers of this great package, > Philippe> I've been looking for a long while for a good quality > Philippe> plotting package. > > Philippe> I would like to plot time in hours on the x axis, with > Philippe> one minor grid per 15 minutes and one major grid per > Philippe> hour, but I can only see 10 fixed grids on all tutorial > Philippe> and documentation. > > Philippe> How can I configure that? > > No support for minor and major ticks yet, but I can add it pretty > quickly, probably for the next release due out soon. I just need a > little information. How do grids interact with major and minor ticks? > I know major ticks are generally bigger and are labeled, and minor > ticks are smaller and not labeled, but I don't know how grid lines are > usually handled with respect to major and minor ticks. If you have a > link to a canonical figure which uses major and minor ticks, I can > follow that example. > > JDH for my application, I need something that looks like Tobias Oetiker RRD tool graph: This one is 1h per minor grid and tick, 6h per majors. Thanks!! |
From: John H. <jdh...@ac...> - 2004-04-16 02:12:03
|
>>>>> "Philippe" == Philippe Strauss <phi...@pr...> writes: Philippe> This one is 1h per minor grid and tick, 6h per majors. Hi Phillipe, I just wanted to let you know that I've finished adding the major and minor tick support for the next release of matplotlib. There is additional support for plotting dates and formatting dates with major and minor ticks. There are specialized tick locators for marking ticks by minute, hour, day, weekday, month, year, every 4 hours, every 3 months, and so on. There is a new command plot_date function and a series of date converters to let you plot dates with, for example, epochs, python datetimes or mx.Datetimes. You can work with custom date instances by supplying a custom converter. You can format the date ticks with strftime strings of your choice. The major and minor tick support is generic and fully customizable and should be useful for many other applications. Look for the release next week. JDH |
From: Philippe S. <phi...@pr...> - 2004-04-16 06:39:06
|
waouw thanks, that's an amazing support! ----- Original Message ----- From: "John Hunter" <jdh...@ac...> To: "Philippe Strauss" <phi...@pr...> Cc: <Mat...@li...> Sent: Friday, April 16, 2004 3:49 AM Subject: Re: [Matplotlib-users] setting grid density > >>>>> "Philippe" == Philippe Strauss <phi...@pr...> writes: > > Philippe> This one is 1h per minor grid and tick, 6h per majors. > > Hi Phillipe, > > I just wanted to let you know that I've finished adding the major and > minor tick support for the next release of matplotlib. There is > additional support for plotting dates and formatting dates with major > and minor ticks. There are specialized tick locators for marking > ticks by minute, hour, day, weekday, month, year, every 4 hours, every > 3 months, and so on. There is a new command plot_date function and a > series of date converters to let you plot dates with, for example, > epochs, python datetimes or mx.Datetimes. You can work with custom > date instances by supplying a custom converter. You can format the > date ticks with strftime strings of your choice. > > The major and minor tick support is generic and fully customizable and > should be useful for many other applications. > > Look for the release next week. > > JDH |
From: Al S. <a.d...@wo...> - 2004-04-13 16:27:24
Attachments:
xxx.png
|
On Tue, 2004-04-13 at 10:12, John Hunter wrote: > >>>>> "Philippe" == Philippe Strauss <phi...@pr...> writes: > > Philippe> Hello, I'm new to matplotlib and this list. > Philippe> Congratulation to the developers of this great package, > Philippe> I've been looking for a long while for a good quality > Philippe> plotting package. > > Philippe> I would like to plot time in hours on the x axis, with > Philippe> one minor grid per 15 minutes and one major grid per > Philippe> hour, but I can only see 10 fixed grids on all tutorial > Philippe> and documentation. > > Philippe> How can I configure that? > > No support for minor and major ticks yet, but I can add it pretty > quickly, probably for the next release due out soon. I just need a > little information. How do grids interact with major and minor ticks? > I know major ticks are generally bigger and are labeled, and minor > ticks are smaller and not labeled, but I don't know how grid lines are > usually handled with respect to major and minor ticks. If you have a > link to a canonical figure which uses major and minor ticks, I can > follow that example. > > JDH > I've also been playing around with plots versus time (in my case calendar time) and experimenting with tick style and ticklabel placement computed as a function of the time span. I attached a plot of one of my experiments. (This is where the need for multi-line ticklabels comes from.) The ticks and ticklabels that one wants differ according to the span of time plotted. For instance, for multi-year plots, the ticks are no finer than quarterly, but adjust to monthly, weekly, or daily if the span is sub-year. The tick placement is, of course, not uniform, because of the irregularities in the calendar. I have not experimented with sub-day time-spans of the kind shown by Philippe. -Al Schapira |