[Matplotlib-users] Changing the Dash Spacing?

2012-02-23 Thread Jeff Klukas
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(range(20), range(20

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 j...@iki.fi wrote: Jeff Klukas klu...@wisc.edu writes:   File /Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/matplotlib/dviread.py, line 727, in _register     assert encoding is None AssertionError

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 d.mcdoug...@warwick.ac.uk 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

[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, line 32

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 d.mcdoug...@warwick.ac.uk 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

Re: [Matplotlib-users] Changing the font

2010-04-01 Thread Jeff Klukas
On Thu, Apr 1, 2010 at 11:21 AM, Alex S schmitt.happ...@gmail.com 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

[Matplotlib-users] Setting colors for hist

2010-03-26 Thread Jeff Klukas
', 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.hep.wisc.edu/~jklukas

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 +

[Matplotlib-users] Tick labels in mplot3d?

2010-03-25 Thread Jeff Klukas
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() || Jeff Klukas, Research Assistant, Physics || University of Wisconsin -- Madison || jeff.klu

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