Re: [Matplotlib-users] bug in saving figure with dashed lines

2006-08-01 Thread Darren Dale
On Tuesday 01 August 2006 08:52, John Hunter wrote: > > "Jouni" == Jouni K Seppanen <[EMAIL PROTECTED]> writes: > > Jouni> The draw_lines method in the PS backend divides the line > Jouni> into subsequences of at most 50 points, and calls the > Jouni> "stroke" operator for each subs

Re: [Matplotlib-users] Combining figures

2006-08-01 Thread David Huard
There is a nice little trick where you can make two axes share the same xaxis.  Then when you pan or zoom on one, the other isautomagically changed toax1 = subplot(211)ax2 = subplot(212, sharex=ax1)But that's not retroactive, or is it ? i.e. if ax2 has a wider x range than ax1, it won't show up. f

Re: [Matplotlib-users] bug in saving figure with dashed lines

2006-08-01 Thread John Hunter
> "Jouni" == Jouni K Seppanen <[EMAIL PROTECTED]> writes: Jouni> The draw_lines method in the PS backend divides the line Jouni> into subsequences of at most 50 points, and calls the Jouni> "stroke" operator for each subsequence, which in effect Jouni> resets the dash offset. Th

Re: [Matplotlib-users] Combining figures

2006-08-01 Thread John Hunter
> "David" == David Huard <[EMAIL PROTECTED]> writes: David> Hi John, Thanks for taking the time to answer a badly David> formulated question. With your indications, I have been David> able to get an example working. Great. David> s1.set_xlim(s2.get_xlim()) There is a nice l

Re: [Matplotlib-users] bug in saving figure with dashed lines

2006-08-01 Thread Jouni K Seppanen
Eric Emsellem <[EMAIL PROTECTED]> writes: > But when saving it in a postscript the dashed line looks solid on most > of the plot. > This happens if there are too many points in the line: The draw_lines method in the PS backend divides the line into subsequences of at most 50 points, and calls the

[Matplotlib-users] bug in saving figure with dashed lines

2006-08-01 Thread Eric Emsellem
Hi, I just produced a plot with a curve dashed line: when saving it into a png file it works fine. But when saving it in a postscript the dashed line looks solid on most of the plot. This happens if there are too many points in the line: x = arange(0,1.,0.0001) y = sqrt(x) plot(x,y,'k--') ## Png