Re: [Matplotlib-users] subplot layout

2016-04-25 Thread Jody Klymak
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 > h

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 are

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

2015-06-08 Thread Jody Klymak
ge tag. > It is sort 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 <mailto:jkly...@uvic.ca>> wrote: > > Hi all, > > If I want to contribute *.rst files to the matplotl

[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
; On 2015/06/05 11:13 AM, Jody Klymak wrote: >> Though I was hazily aware of norms, I’d not really seen that before. >> I particularly like the example >> athttp://matplotlib.org/examples/pylab_examples/pcolor_log.html >> >> This seems useful enough that a section under

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

2015-06-05 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/ -- _

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

2015-06-05 Thread Jody Klymak
(b) shows small > variations below 60 and large variations above 60 with equal "clarity”. If you need to see small changes at low values and they are equally important to large changes at high values, then taking the logarithm is often useful (or scaling your colorbar logarithmically). Cheers,

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 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 hav

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

2015-06-05 Thread Jody Klymak
ata > sets 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 > > O

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

2015-06-05 Thread Jody Klymak
users> > > > ------ > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users --

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 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 replacing V wit

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

2015-04-08 Thread Jody Klymak
imits and then you have a problem checking all the shared axes to see which one has the largest data limits. Its particularly problematic because I think that apply_aspect() is only called at draw()-time. That seems a hard problem, but I&#x

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

2015-04-08 Thread Jody Klymak
is behaviour onto set_aspect(). I guess the workaround is don't use sharex=True, but I actually think this is a bug. Thanks, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ -- BPM Camp - Free Virt

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

2015-04-08 Thread Jody Klymak
t; <https://lists.sourceforge.net/lists/listinfo/matplotlib-users> > > > -- > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 s

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

2015-04-07 Thread Jody Klymak
o/matplotlib-users >>>> >>> >>> >>> -- >>> Yuxiang "Shawn" Wang >>> Gerling Research Lab >>> University of Virginia >>> yw...@virginia.edu >>> +1 (434) 284-0836 >>> https://sites.google.com/a/virg

Re: [Matplotlib-users] Color Bar Limits

2015-04-02 Thread Jody Klymak
t to (0, > 1). 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 <mailto:jkly...@uvic.ca>> wrote: > Hi John,

Re: [Matplotlib-users] Color Bar Limits

2015-04-02 Thread Jody Klymak
for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. > http://goparallel.sourceforge.net/

Re: [Matplotlib-users] Multiplot with one colorbar

2015-04-01 Thread Jody Klymak
x=axes(position=pos2) fig.colorbar(pcm,cax=cax,**kwargs) > On 11 Mar 2015, at 19:43 PM, Dyah rahayu martiningrum > 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

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 space

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

2015-03-26 Thread Jody Klymak
r, I 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] 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 = mpl.colorbar.make_axes

Re: [Matplotlib-users] subplot axis ticks

2014-12-11 Thread Jody Klymak
> > this is my code: > > azal = rif.add_subplot(111) > azal.plot(eels*(10**9), averspe, label='data') > azal.plot(eels*(10**9), beck, label='fit') > > I tried to add both > azal.yaxis.locator_params(nbins=4) > or > azal.locator_params(nbins=4)

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 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] 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 wrote: > > Hi @all, > the problem seems to be solved. Thanks Jody! > What i have done: > > 1.) check out

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 wrote: > > Hi Jody, > > what exactly du you mean - the plot windows size? > > I tried this: > fig = plt.figure(figsize=(8.4,5.76)) > > But sti

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] 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 > 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. > > As a short-term worka

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

2014-09-08 Thread Jody Klymak
s mailing list > > Matplotlib-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > -- > This email was Virus checked by Astaro Security Gateway. http://www.sophos.com > > > > -----

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

2014-04-23 Thread Jody Klymak
any difference if I use the save button on > the interactive 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 wrote: > Did you set the dpi of the png? > > Cheers

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 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. Anyway, thanks to all

[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: pcm=pcolo

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

2013-10-01 Thread Jody Klymak
abels(simtimedata[::100]) Cheers, 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, O

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 wrote: > > Hi all, > > I am trying to ma

Re: [Matplotlib-users] plot_surface does not work

2013-09-24 Thread Jody Klymak
3) I think plot_surface should accept a fourth (optional) argument C for colouring the faces: plot_surface(X,Y,Z,C). I do this a lot if I want to make a 3-D plot, and normalizing C, clipping it, and indexing a colormap seem clunky, when the routine could do it for me. Thanks, Jody -- Jo

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

2013-09-24 Thread Jody Klymak
ocessing. 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/ -

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

2013-07-22 Thread Jody Klymak
gest one first, and the smallest one last and set_alpha = 1. Cheers, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ -- See everything from the browser to the database with AppDynamics Get end-to-end vis

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

2013-07-18 Thread Jody Klymak
08831&iu=/4140/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] Projection Direction Distortion

2013-04-26 Thread Jody Klymak
a that any 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 t

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

2013-04-24 Thread Jody Klymak
esome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/ -

[Matplotlib-users] native latex rendering:

2013-04-01 Thread Jody Klymak
="\usepackage{cmbright}") plot(arange(1,50)) title(' Boo 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 mor

Re: [Matplotlib-users] pcolormesh and clim?

2013-03-28 Thread Jody Klymak
pecify as an array and do something like clim = array([-1.,1.])*0.2 (for instance). Of course matplotlib probably has some other fancy way to rescale the vmin and vmax simultaneously... Thanks a lot, Jody -- Jody Klymak http://web.uvic.ca/~j

Re: [Matplotlib-users] pcolormesh and clim?

2013-03-28 Thread Jody Klymak
and then call clim, which is obviously not what I mean to do, but... Thanks, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel&

Re: [Matplotlib-users] pcolormesh and clim?

2013-03-28 Thread Jody Klymak
Hi Eric, The docs seem to indicate "clim" is an acceptable kwarg, hence my confusion... http://matplotlib.org/api/pyplot_api.html?highlight=pcolormesh#matplotlib.pyplot.pcolormesh Thanks, Jody On Mar 28, 2013, at 11:12 AM, Eric Firing wrote: > On 2013/03/28 7:56 AM, Jody

[Matplotlib-users] pcolormesh and clim?

2013-03-28 Thread Jody Klymak
"clim" in the context of pcolormesh? Thanks, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ -- Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game dem

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-22 Thread Jody Klymak
size of the x-limits. >> >> Ben Root >> > > -- > > Steven Boada > > Doctoral Student > Dept of Physics and Astronomy > Texas A&M University > bo...@physics.tamu.edu > > -

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

2013-03-07 Thread Jody Klymak
ape(latz)[0],shape(lonz)[0]) ax=subplot2grid((3,1),(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]]) xli

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

2013-03-07 Thread Jody Klymak
. ax=subplot(2,1,1) plot(arange(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 ht

Re: [Matplotlib-users] depth longitude plot

2013-03-04 Thread Jody Klymak
ppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mat

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

2013-02-20 Thread Jody Klymak
do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Kl

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

2013-02-20 Thread Jody Klymak
net/sfu/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/ --

Re: [Matplotlib-users] rasterized colorbar

2012-10-29 Thread Jody Klymak
On Oct 28, 2012, at 17:47 PM, Eric Firing 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.uv

[Matplotlib-users] rasterized colorbar

2012-10-26 Thread Jody Klymak
Thanks Jody x = 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 Kly

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

2012-10-09 Thread Jody Klymak
this. pcolormesh 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

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

2012-10-08 Thread Jody Klymak
_ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > -- > Don't let slow site performance ruin

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

2012-09-08 Thread Jody Klymak
; Sorry for the chatter, and thanks for the pointers.. >> Cheers, Jody >> >> On Sep 8, 2012, at 6:18 AM, Jody Klymak > <mailto:jkly...@uvic.ca>> wrote: >> >>> Hi all, >>> >>> Thats what I thought too: >>> >>> I have:

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

2012-09-08 Thread Jody Klymak
pointers.. Cheers, Jody On Sep 8, 2012, at 6:18 AM, Jody Klymak wrote: > Hi all, > > Thats what I thought too: > > I have: jmkfigure.py: > > === > from pylab import * > > def jmkfigure(): > rc('figure',figsize=(

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

2012-09-08 Thread Jody Klymak
12, at 22:52 PM, Paul Tremblay wrote: > in your 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 >>

[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