[Matplotlib-users] Changing the Dash Spacing?

2012-02-23 Thread Jeff Klukas
e to match font sizes exactly by making the figure the right size in the first place. Many thanks, Jeff || Jeff Klukas, Physics || University of Wisconsin || http://jeff.klukas.net - import matplotlib.pyplot as plt fig = plt.figure(figsize=(6,4)) plt.plot(rang

Re: [Matplotlib-users] Error with PDF output with usetex

2011-08-22 Thread Jeff Klukas
On Sun, Aug 21, 2011 at 1:01 PM, Jouni K. Seppänen wrote: > Jeff Klukas writes: > >>   File >> "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/matplotlib/dviread.py", >> line 727, in _register >>     assert encoding is Non

Re: [Matplotlib-users] Error with PDF output with usetex

2011-08-17 Thread Jeff Klukas
On Tue, Aug 16, 2011 at 4:22 AM, Damon McDougall wrote: > Hi Jeff, > > I am able to run the tex_demo.py with no problems and I can create > > output files using the Agg backend.  When I try to use the PDF > > backend, however, I get an error which stems from dviread.py (pasted > > below).  Any tho

Re: [Matplotlib-users] Error with PDF output with usetex

2011-08-15 Thread Jeff Klukas
On Mon, Aug 15, 2011 at 10:00 PM, Damon McDougall wrote: > Hi Jeff, > > I am able to run the tex_demo.py with no problems and I can create > > output files using the Agg backend.  When I try to use the PDF > > backend, however, I get an error which stems from dviread.py (pasted > > below).  Any th

[Matplotlib-users] Error with PDF output with usetex

2011-08-15 Thread Jeff Klukas
(pasted below). Any thoughts on what could be going wrong? Thanks! Jeff || Jeff Klukas || Research Assistant (Physics), University of Wisconsin || jeff.klukas@gmail | jeffyklukas@aim | jeffklukas@skype || http://hep.wisc.edu/~jklukas/ Traceback (most recent call last): File "tex_demo.py"

Re: [Matplotlib-users] Changing the font

2010-04-01 Thread Jeff Klukas
On Thu, Apr 1, 2010 at 11:21 AM, Alex S wrote: > > Hi there, > I'm trying to change the font default on my graph to New Century Schoolbook. > I'm trying to do this by editing the matplotlibrc file.  Unfortunately, > although I'm able to change the font.family, I can't figure out how to make > it u

Re: [Matplotlib-users] Setting colors for hist

2010-03-26 Thread Jeff Klukas
I was not aware of color cycles, but it looks like this is the way to go about solving my problem. Below is an example that actually works. -- import pylab as P mu, sigma = 200, 25 x0 = mu + sigma*P.randn(1) x1 = mu + sigma*P.randn(7000) x2 = mu + sigma*P.ran

[Matplotlib-users] Setting colors for hist

2010-03-26 Thread Jeff Klukas
ttype='bar', color=[(.5, 0., 0., 1.), (0., .5, 0., 1.),]) P.show() --- Many thanks, Jeff || Jeff Klukas, Research Assistant, Physics || University of Wisconsin -- Madison || jeff.klu...@gmail | jeffyklu...@aim | jeffklu...@skype || http://www.h

[Matplotlib-users] Tick labels in mplot3d?

2010-03-25 Thread Jeff Klukas
s([0, 10, 20, 30]) # This totally screws things up ax.yaxis.set_ticklabels(['first', 'second', 'third', 'fourth']) # This does absolutely nothing ## End my changes ax.set_xlabel('X') ax.set_ylabel('Y') ax.set_zlabel('Z') plt.show()

Re: [Matplotlib-users] Polar 3D plot?

2010-03-18 Thread Jeff Klukas
The code below works perfectly. I think this should be included as an mplot3d codex. I'll look into what's required to submit a new example to the documentation. Thanks Armin! || Jeff Klukas, Research Assistant, Physics || University of Wisconsin -- Madison || jeff.klu...@gmail