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
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
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
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
(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"
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
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
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
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()
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
I'm guessing this is currently impossible with the current mplot3d
functionality, but I was wondering if there was any way I could generate a
3d graph with r, phi, z coordinates rather than x, y, z?
The point is that I want to make a figure that looks like the following:
http://upload.wikimedia
Tom Leys wrote:
>
> It looks like you are storing your source data in a python list.
> Matplotlib runs much faster if you store your data using a numpy array
> instead.
>
> I'm no expert, but it certianly sped up my graph drawing.
>
I am trying something similar to what Mike was describing.
12 matches
Mail list logo