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
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
, 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
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
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
= 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
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
@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
-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
/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
(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
),(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
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
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
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
___
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
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
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
= 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
. 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
, 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
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
--
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
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:
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.
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
/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
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.
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.
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 =
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:
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
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
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 =
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
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
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
://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
=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
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
://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
). 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
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
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
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
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
--
Jody Klymak
http://web.uvic.ca/~jklymak/
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Jody Klymak
http://web.uvic.ca/~jklymak/
--
___
Matplotlib-users mailing list
Matplotlib-users
-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Jody Klymak
http://web.uvic.ca/~jklymak/
--
___
Matplotlib-users mailing list
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
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
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
52 matches
Mail list logo