Re: [Matplotlib-users] xticks not lining up with data

2015-06-17 Thread Ted To
could also be > the reason for a ValueError. So you would need to use whatever pandas > variable that indices.index derived from. > > Ben Root > > On Wed, Jun 17, 2015 at 12:48 PM, Ted To wrote: > >> Unless I recall incorrectly, I think I am using set_xticklabels >

Re: [Matplotlib-users] xticks not lining up with data

2015-06-17 Thread Ted To
e x values > to ax.plot() along with the y values? Then you won't need to set the > labels because matplotlib will do it for you. > > Ben Root > > On Wed, Jun 17, 2015 at 10:13 AM, Ted To wrote: > >> Hi, >> >> I'm having a strange problem a

[Matplotlib-users] xticks not lining up with data

2015-06-17 Thread Ted To
Hi, I'm having a strange problem and I don't understand why this is happening. I am plotting the dataframe in: http://pastebin.com/C0Pt0iYd but I'm getting too few tick marks. My code for the plot is: fig, ax = plt.subplots() plt.rc('text', usetex=True) fig.autofmt_xdate() ax.plot(indi

Re: [Matplotlib-users] Multiple lines of xtick_labels

2014-08-15 Thread Ted To
g Smith > wrote: >> How about prepending '\n' to your minor labels? >> >> On Aug 15, 2014, at 1:38PM, Ted To wrote: >> >>> Hi, >>> >>> I'm trying to set two lines of xtick_labels But I can't figure out how >>> to get

[Matplotlib-users] Multiple lines of xtick_labels

2014-08-15 Thread Ted To
Hi, I'm trying to set two lines of xtick_labels But I can't figure out how to get them on separate lines. These are for errorbars where I have two variables for each of four categories. Using the following code, I'm able to create the attached figure. How does one move the "minor" xtick_labels

Re: [Matplotlib-users] Outline for histogram bars

2013-11-13 Thread Ted To
Root wrote: > > > > On Tue, Nov 12, 2013 at 8:01 PM, Ted To <mailto:rainexpec...@theo.to>> wrote: > > Perfect! Many thanks! Seems to be an undocumented feature... > > > Not undocumented. In the docs for hist(), it says that it accepts any > param

Re: [Matplotlib-users] Outline for histogram bars

2013-11-12 Thread Ted To
Perfect! Many thanks! Seems to be an undocumented feature... Out of curiosity, what is the rationale behind using 'dashed' and 'dashdot' instead of '--' and '-.'? Ted To On 11/12/2013 04:59 PM, Benjamin Root wrote: > > > > On Tue

Re: [Matplotlib-users] plot_date again

2012-02-08 Thread Ted To
On 02/08/2012 02:22 PM, John Hunter wrote: > > > On Wed, Feb 8, 2012 at 1:12 PM, Ted To <mailto:rainexpec...@theo.to>> wrote: > > Is it possible to force the date ticks to be the same in two different > plots? For example, the attached figures cover the s

[Matplotlib-users] plot_date again

2012-02-08 Thread Ted To
Hi, Is it possible to force the date ticks to be the same in two different plots? For example, the attached figures cover the same time spans but in one, the data are weekly and the other, monthly. While there is nothing really wrong with different tick marks, aesthetically it would be nice if t

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread Ted To
On 02/08/2012 11:28 AM, John Hunter wrote: > > OK, here is where the problem is. In the plt.axis call you are setting > the x-axis min to 0 which is not a legal date value. I suggest letting > the x-axis take care of itself, and set the y-axis limits with > > plt.ylim(-1.5, 1.5) > > JDH Man

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread Ted To
On 02/08/2012 11:17 AM, John Hunter wrote: > > > On Wed, Feb 8, 2012 at 10:06 AM, Ted To <mailto:rainexpec...@theo.to>> wrote: > > If it hasn't been fixed, is there a workaround? > > On 02/08/2012 10:42 AM, Ted To wrote: > > I believe

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread Ted To
If it hasn't been fixed, is there a workaround? On 02/08/2012 10:42 AM, Ted To wrote: > I believe I have traced it to some axhline and axis commands and this is > apparently an old problem. Does it work with version 1.1.0? I have > 1.0.1 installed on a debian system. > > On

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread Ted To
I believe I have traced it to some axhline and axis commands and this is apparently an old problem. Does it work with version 1.1.0? I have 1.0.1 installed on a debian system. On 02/08/2012 09:47 AM, Ted To wrote: > Hi, > > I'm experiencing a very strange problem with plot_dat

[Matplotlib-users] Strange plot_date problem

2012-02-08 Thread Ted To
Hi, I'm experiencing a very strange problem with plot_date that I can't figure out. pyplot.plot_date(pylab.date2num(dates),diff,'b-',label='Chained') pyplot.show() dates, naturally, is a list of dates and diff is an array of floats. With my script, this fails. But if I interactively ent