Re: [Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-29 Thread arsbbr
I never got the trick with set_yscale="clip" to work for my plots (MPL 1.1.0). So I'm passing my error values to this little function in order to correct the yerr_neg: def filt_neg_err(y, yerr, set_ymin=1e-6): ymin = y - yerr filt = ymin < 0 yerr_pos = yerr.copy() yerr_neg = yerr.

Re: [Matplotlib-users] plot_surface shading and clipping error

2010-07-25 Thread arsbbr
Ben, your code fixed the shading problem, but it did not change anything on the clipping error. I also found that changing the cstride/rstride helps 'sometimes'. But also does changing the linewidth. The problem is consistency with my loop... I understand this is a bug that is not easy to fix.

Re: [Matplotlib-users] plot_surface shading and clipping error

2010-07-25 Thread arsbbr
e, I would find a 'good angle', make it constant and start the loop. But at the moment the outcome is just arbitrary. Regards, arsbbr Benjamin Root-2 wrote: > > On Sat, Jul 24, 2010 at 2:46 PM, arsbbr wrote: > > > > The thing to keep in mind when creating a surfac

Re: [Matplotlib-users] plot_surface shading and clipping error

2010-07-24 Thread arsbbr
Thank you for looking into it! It would be perfectly fine for me to merge the two objects, so that one surface_plot command will do it. Maybe someone can give me a hint how to accomplish that? I appreciate any tips. Benjamin Root-2 wrote: > > On Sat, Jul 24, 2010 at 7:18 AM, arsbbr

[Matplotlib-users] plot_surface shading and clipping error

2010-07-24 Thread arsbbr
Hi, i'm trying to make a simple 3d plot of a cylinder with plot_surface. There are two problems in my output: 1) the shading, shading does not work on the cylindric shell and at the same time produces weird artifacts on the top cover. http://old.nabble.com/file/p29254649/cyl-shade-error.png 2)

[Matplotlib-users] LaTeX Mathdesign Fonts patch?

2010-04-11 Thread arsbbr
Hi, by putting rc('text', usetex=True) rc('text.latex',preamble='\usepackage[bitstream-charter]{mathdesign}') in my plot source I was trying to get a consistent fontface, but it doesn't work. I know since preamble is not officially supported in matplotlib I didn't really expect it to wor