2010-11-03 19:26, Marcin Krol skrev:
matplotlib:
field.setCheckState(Qt.Checked if value else Qt.Unchecked)
^
SyntaxError: invalid syntax
The code above is a conditional expression, and those are mentioned [0]
on the what's new in python
2010-05-02 20:19, aditya bhargava skrev:
Is there a straightforward way of plotting a vector in matplotlib?
Suppose I want to plot the vector [1 2]'. If I pass this vector in to
plot(), I get the line that passes through (0,1), (1,2). Instead I want
the line that passes through (0,0),(1,2).
2010-05-04 04:13, Joe Kington skrev:
Isn't that what quiver
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.quiver
does? Or am I misunderstanding the question?
Regardless of the OPs question, the quiver seems to be the solution I
should use for my purpose.
Thanks.
/
Manuel Wittchen skrev:
Is it possible to print the value of a variable in an annotation?
Example:
gradient = 2.0
intercept = 3.0
r-value = 0.99
ax.annotate('f(x) = gradient * x + intercept R^2 = r-value',
xy=(2.9,-0.75), xytext=(2.9,-0.75))
I feel that a main advantage of matplotlib
Wayne Watson skrev:
See Subject. I don't seem able to produce a simple example of using
histogram that uses range. I tried a variety of ranges, range=(0,22),
range=(0, 50.2), ... and I see no difference between any of the x values
scale. Can someone provide an example that shows how it
Wayne Watson skrev:
Anyway, where, folder, does your program write the files? I'm not
familiar with figure, but apparently using it produces some canvas
that plt.hist places it's output on. One can than save fig to a file.
What happens if I don't use figure? I just put a copy of the line
Wayne Watson skrev:
So far matplotlib pretty much leaves the user on his own. Yes, there are
plenty of examples, but there seem to be no explanations about matters
like figure or show. No tutor on any of this I guess. Apparently, they
are leaving it up to one's MATLAB experience. It's been