[Matplotlib-users] python question from matlab user

2012-09-07 Thread Jody Klymak
Hi All, Sorry to ask a dumb python newbie question, but the problem arose while reading the matplotlib documentation, and an hour or so on the internet didnt' help, so I felt it was fair-ish game to post here. In http://matplotlib.sourceforge.net/examples/pylab_examples/customize_rc.html it

Re: [Matplotlib-users] python question from matlab user

2012-09-08 Thread Jody Klymak
jmkfile.py you should have from pylab import * Paul On 9/8/12 12:45 AM, Jody Klymak wrote: Hi All, Sorry to ask a dumb python newbie question, but the problem arose while reading the matplotlib documentation, and an hour or so on the internet didnt' help, so I felt it was fair-ish game

Re: [Matplotlib-users] python question from matlab user

2012-09-08 Thread Jody Klymak
, Jody On Sep 8, 2012, at 6:18 AM, Jody Klymak jkly...@uvic.ca mailto:jkly...@uvic.ca wrote: Hi all, Thats what I thought too: I have: jmkfigure.py: === from pylab import * def jmkfigure(): rc('figure',figsize=(3+3/8,8.5/2),dpi=96) rc('font',size=9

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Jody Klymak
sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-09 Thread Jody Klymak
is not even in the See Also, and there is no warning about the effciency of pcolor. I'd even go so far as to suggest that pcolor be deprecated so new users are more likely to find pcolormesh. Anyway, thanks for the pointer! Cheers, Jody -- Jody Klymak http://web.uvic.ca/~jklymak

[Matplotlib-users] rasterized colorbar

2012-10-26 Thread Jody Klymak
= linspace(0,1,1000) X = outer(x,x) pcolormesh(X,cmap=get_cmap('RdBu_r',lut=32),rasterized=True) colorbar() savefig('Test.pdf',dpi=50) Test.pdf Description: Adobe PDF document -- Jody Klymak http://web.uvic.ca/~jklymak

Re: [Matplotlib-users] rasterized colorbar

2012-10-29 Thread Jody Klymak
On Oct 28, 2012, at 17:47 PM, Eric Firing efir...@hawaii.edu wrote: cb = colorbar() cb.solids.set_rasterized(True) Great! Though I think it'd have taken me a while to figure that one out! Thanks, Jody -- Jody Klymak http://web.uvic.ca/~jklymak

Re: [Matplotlib-users] I cannot change the axis tick separation or nbins in Axis artist

2013-02-20 Thread Jody Klymak
@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download

Re: [Matplotlib-users] I cannot change the axis tick separation or nbins in Axis artist

2013-02-20 Thread Jody Klymak
-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -- Everyone hates slow websites. So do we. Make

Re: [Matplotlib-users] depth longitude plot

2013-03-04 Thread Jody Klymak
/appdyn_d2d_feb___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -- Everyone hates slow

[Matplotlib-users] matching axes lengths after calls to set_aspect and colorbar

2013-03-07 Thread Jody Klymak
(0,10),arange(0,10)*3) ax.set_aspect(0.7) pp = ax.get_position().bounds axn=subplot(2,1,2,sharex=ax) plot(arange(0,10),rand(10)) ppn = axn.get_position().bounds print pp print ppn axn.set_position([pp[0],ppn[1],pp[2],ppn[3]]) -- Jody Klymak http://web.uvic.ca/~jklymak

Re: [Matplotlib-users] matching axes lengths after calls to set_aspect and colorbar

2013-03-07 Thread Jody Klymak
),(0,0),rowspan=2) pcolormesh(lonz,latz,Z) ax.set_aspect(cos(39*pi/180.)) draw() pp=ax.get_position().bounds xl=ax.get_xlim() axn=subplot2grid((3,1),(2,0)) plot(lons,dats) ppn = axn.get_position().bounds axn.set_position([pp[0],ppn[1],pp[2],ppn[3]]) xlim(xl) -- Jody Klymak http://web.uvic.ca

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-22 Thread Jody Klymak
with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http

Re: [Matplotlib-users] pcolormesh and clim?

2013-03-28 Thread Jody Klymak
as pcolormesh(x,z,U,rasterized='True',cmap=cm.RdBu_r,clim=(-1.,1.)) clim((-1.,1.)) does work. Is this a bug or am I misunderstanding clim in the context of pcolormesh? Thanks, Jody -- Jody Klymak http://web.uvic.ca/~jklymak

[Matplotlib-users] native latex rendering:

2013-04-01 Thread Jody Klymak
Whoo') xlabel('$t\ [m^2s^{-1}]$') Looks pretty good, though I prefer the default fonts, but it takes a long time for all the rendering. Is there a better solution to the first case that makes the fonts look more consistent? Thanks, Jody -- Jody Klymak http://web.uvic.ca/~jklymak

Re: [Matplotlib-users] cpt-city colormaps for matplotlib

2013-04-24 Thread Jody Klymak
___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -- Try New Relic Now

Re: [Matplotlib-users] Projection Direction Distortion

2013-04-26 Thread Jody Klymak
of this matters - if your vector is off by 1 degree, who will be able to tell in a plot? Cheers,Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ -- Try New Relic Now We'll Send You this Cool Shirt New Relic

Re: [Matplotlib-users] numpy masked array plot - isolated single unmasked value is hidden

2013-07-18 Thread Jody Klymak
Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -- See everything from the browser to the database with AppDynamics Get

Re: [Matplotlib-users] Asking for help modifying a matplot windrose graphic using Python (:

2013-07-22 Thread Jody Klymak
= 1. Cheers, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate

Re: [Matplotlib-users] change the EPS font type ... afterwards!

2013-09-24 Thread Jody Klymak
. If you want to run it again later, you just change to an if 1:. This approach lets you play with plots w/o reprocessing all the time. Cheers, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ -- October Webinars

Re: [Matplotlib-users] plot_surface does not work

2013-09-24 Thread Jody Klymak
, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling

Re: [Matplotlib-users] curtain plots

2013-09-26 Thread Jody Klymak
Hi All, To follow up on my own post - because my curtains and contours were well-ordered, I simply set the zorder on each call and got the right effect. Thanks, Jody On Sep 25, 2013, at 15:15 PM, Jody Klymak jkly...@uvic.ca wrote: Hi all, I am trying to make 3-D curtain plots

Re: [Matplotlib-users] x axis non-uniform labeling (KURT PETERS)

2013-10-01 Thread Jody Klymak
-- Jody Klymak http://web.uvic.ca/~jklymak/ -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more

[Matplotlib-users] View just an angled part of an axis?

2014-03-07 Thread Jody Klymak
Hi all, I have some pcolormesh data that is in a thin strip along a slope at a (say) 45 degree angle.Is there a way to set up a view of data just within dz of the slope, following the slope? I would then stack successive views of this data. I tentatively tried something like:

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Jody Klymak
Did you set the dpi of the png? Cheers, Jody On Apr 21, 2014, at 13:50 PM, ChaoYue chaoyue...@gmail.com wrote: OK, I tried but I don't really see the difference between jpg and png by my eyes in the attached case, maybe for other more complicated plots there will be real difference.

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-23 Thread Jody Klymak
plotting toolbar and use the command line figure.savefig('xx.png',dpi=1000)? Chao On Mon, Apr 21, 2014 at 10:59 PM, Jody Klymak jkly...@uvic.ca wrote: Did you set the dpi of the png? Cheers, Jody On Apr 21, 2014, at 13:50 PM, ChaoYue chaoyue...@gmail.com wrote: OK, I tried

Re: [Matplotlib-users] Plotting large file (NetCDF)

2014-09-08 Thread Jody Klymak
/ostg.clktrk___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak

Re: [Matplotlib-users] Single color transparent colormap

2014-11-19 Thread Jody Klymak
Did you try pcolormesh? Cheers, Jody On Nov 19, 2014, at 7:23 AM, Gael Varoquaux gael.varoqu...@normalesup.org wrote: On Wed, Nov 19, 2014 at 10:20:23AM -0500, Benjamin Root wrote: Notice that the colormap looks fine for the colorbar because it isn't using imshow() under the hood.

Re: [Matplotlib-users] Pyplot contour plot - clabel padding

2014-12-04 Thread Jody Klymak
Hi Your code wans't included, but try setting your x and y limits *before* the call to clabel. I think that the problem is that clabel makes a space in the contours according to how large your font is, but if you then resize the plot (zoom in) then the blank space is too large for the labels.

Re: [Matplotlib-users] Pyplot contour plot - clabel padding

2014-12-05 Thread Jody Klymak
I meant plt.xlim and plt.ylim. But its hard to tell what the problem is w/o some sample code. Cheers, Jody On Dec 5, 2014, at 1:07 AM, Sappy85 robert.wittk...@gmx.de wrote: Hi Jody, what exactly du you mean - the plot windows size? I tried this: fig =

Re: [Matplotlib-users] Pyplot contour plot - clabel padding

2014-12-09 Thread Jody Klymak
Not sure, as I don't use basemap too often, but I bet calling: m.drawmapboundary(fill_color='w') before clabel would do the trick Cheers, Jody On Dec 9, 2014, at 16:35 PM, Sappy85 robert.wittk...@gmx.de wrote: Hi @all, the problem seems to be solved. Thanks Jody! What i have done:

Re: [Matplotlib-users] subplot axis ticks

2014-12-11 Thread Jody Klymak
http://stackoverflow.com/questions/6682784/how-to-reduce-number-of-ticks-with-matplotlib http://stackoverflow.com/questions/6682784/how-to-reduce-number-of-ticks-with-matplotlib is the easy way. You can also write your own “Locators” that are more sophisticated if you have some ideas in mind

Re: [Matplotlib-users] subplot axis ticks

2014-12-11 Thread Jody Klymak
both azal.yaxis.locator_params(nbins=4) or azal.locator_params(nbins=4) and it doesn't work. Gabriele On Thu, Dec 11, 2014 at 10:43 AM, Jody Klymak jkly...@uvic.ca mailto:jkly...@uvic.ca wrote: http://stackoverflow.com/questions/6682784/how-to-reduce-number-of-ticks-with-matplotlib

Re: [Matplotlib-users] Multiplot with one colorbar

2015-03-06 Thread Jody Klymak
Hi, I guess I don't understand the [axx for axx in ax.flat] command, but this steals from all the axes. Cheers, Jody fig,ax = plt.subplots(2,2) for i in range(2): for j in range(2): im=ax[i,j].imshow(np.ones((20,20))) im.set_clim([-1.,2.]) cax,kw =

Re: [Matplotlib-users] matplotlib basemap streamlines plot

2015-03-30 Thread Jody Klymak
Hi, If your flow is actually non-divergent, so that continuous streamlines make sense, you could contour the streamfunction: a decent approximation should be psi = 0.5*( cumsum(u*dy[:,newaxis],axis=1)-cumsum(v*dx[newaxis,:],axis=0)) Of course this won’t work so well if u and v are coarsely

Re: [Matplotlib-users] ANN: John Hunter SciPy 2015 Plotting Contest - Call for Entries by 4/13 (Cash prizes!)

2015-03-26 Thread Jody Klymak
couldn’t figure out who won? Cheers, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership

Re: [Matplotlib-users] sharex with one figure aspect = 1.0

2015-04-08 Thread Jody Klymak
called at draw()-time. That seems a hard problem, but I'm not sure what the use case is for it, so I have trouble wrapping my head around it. Thanks, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ -- BPM

Re: [Matplotlib-users] Problem with errorbar and log axis

2015-04-07 Thread Jody Klymak
://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN

Re: [Matplotlib-users] sharex with one figure aspect = 1.0

2015-04-08 Thread Jody Klymak
=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak

Re: [Matplotlib-users] Multiplot with one colorbar

2015-04-01 Thread Jody Klymak
Mar 2015, at 19:43 PM, Dyah rahayu martiningrum dyahr...@gmail.com wrote: Thank you so much Jody, Eric, Arnaldo, and Joy. I will try your suggestion. Dyah On Sat, Mar 7, 2015 at 5:21 AM, Jody Klymak jkly...@uvic.ca mailto:jkly...@uvic.ca wrote: Hi, I guess I don't understand

Re: [Matplotlib-users] Color Bar Limits

2015-04-02 Thread Jody Klymak
://goparallel.sourceforge.net/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak

Re: [Matplotlib-users] Color Bar Limits

2015-04-02 Thread Jody Klymak
). So, the kludgy way would seem to be to set the xlimits to be (0.2, 1) (taking out a fifth of the colorbar, but the frame is still there... Ben Root On Thu, Apr 2, 2015 at 12:32 PM, Jody Klymak jkly...@uvic.ca mailto:jkly...@uvic.ca wrote: Hi John, I got this off stack exchange

Re: [Matplotlib-users] matplotlib documentation from python notebook?

2015-06-08 Thread Jody Klymak
of a way to make sure the examples work and that the image matches the code correctly. On Mon, Jun 8, 2015 at 1:06 PM, Jody Klymak jkly...@uvic.ca mailto:jkly...@uvic.ca wrote: Hi all, If I want to contribute *.rst files to the matplotlib documentation, I can see a few styles already

[Matplotlib-users] matplotlib documentation from python notebook?

2015-06-08 Thread Jody Klymak
anything, but wanted to check, as that would by far be the easiest way to make a *.rst that had structured text, code, and plots. Thanks, Jody -- Jody Klymak http://web.uvic.ca/~jklymak

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jody Klymak
to write helper functions like def im_diverging(ax, data, cmap='RbBu', *args, **kwargs): limits = some_limit_function(data) return ax.imshow(data, cmap=cmap, vmin=limits[0], vmax=limits[1], *args, **kwargs) Tom On Fri, Jun 5, 2015 at 12:18 PM Jody Klymak jkly...@uvic.ca mailto:jkly

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jody Klymak
Hi, On 5 Jun 2015, at 11:17 AM, Sourish Basu sourish.b...@gmail.com wrote: On 06/05/2015 10:17 AM, Jody Klymak wrote: Anyways, I guess I am advocating trying to find a colormap with a very obvious central hue to represent zero. Anomaly data sets are *very* common, so having a default

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jody Klymak
-- Jody Klymak http://web.uvic.ca/~jklymak/ -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jody Klymak
https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -- ___ Matplotlib-users mailing list Matplotlib-users

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jody Klymak
-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -- ___ Matplotlib-users mailing list

Re: [Matplotlib-users] zorder taking an array

2015-06-23 Thread Jody Klymak
For my backend (nbagg), the order of the data determines the order of drawing. So in the following, the third diamond covers the first two in the first plot, but the first diamond covers them all in the second plot. Perhaps not as elegant as a matrix zorder, but can achieve the effect you

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-23 Thread Jody Klymak
On May 23, 2015, at 12:07 PM, Eric Firing efir...@hawaii.edu wrote: You might get something more to your liking if you were to start with a colormap in which V is uniform--all variation is in H and S--and then impose the shading on the V. Cubehelix starts with a full range of V, so

Re: [Matplotlib-users] subplot layout

2016-04-25 Thread Jody Klymak
problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net