Is there an easy way to draw a piece of text (or whatever) to an
off-screen or off-canvas buffer, figure out the size from that, and then
use that to draw to the plot?
M
On 3/8/11 5:51 AM, Andrea Crotti wrote:
Goyogoyod...@gmail.com writes:
As Ben explained you need to draw first. So the
What the best way to to use data coordinates rather than axes
coordinates for xmin and xmax with axhline?
Here's my kludgy solution, but it's not elegant:
plot(arange(20))
ax = gca()
inv = ax.transAxes.inverted()
x = inv.transform(ax.transData.transform([10,0]))
ax.axhline(10, xmax=x[0])
I
I'm not sure exactly how you want your minor ticks, but you can try this
LinearMinorLocator (which is not in the distribution yet).
If you're conversant with git you can find the branch here:
https://github.com/matplotlib/matplotlib/pull/122
M
On 6/19/11 3:20 PM,
On 3/11/12 8:14 AM, cgraves wrote:
Hi, here is an example script which places minor ticks with 2 per major tick
(minor tick spacing is fractional of major tick spacing with relative
interval of 1/2):
from pylab import *
fig=figure()
ax=subplot(111)
ax.autoscale(tight=True)
On 3/26/12 12:49 PM, Christopher Graves wrote:
On Sun, Mar 11, 2012 at 2:32 PM, Christopher Graves
christoph.gra...@gmail.com mailto:christoph.gra...@gmail.com wrote:
Try this:
from pylab import *
from matplotlib.ticker import AutoMinorLocator
clf()
I believe that the only way to add a patch is through ax.add_patch()
Should there be an associated pyplot patch() command?
M
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's
On 6/13/12 3:23 PM, Steven Boada wrote:
Whoops, I forgot to change the subject. Sorry list.
List,
I'm making a scatter plot using a for loop. Here's a simple example..
for i in range(10):
x=rand()
y=rand()
scatter(x,y,label='point')
legend()
show()
When you do
On 6/13/12 4:06 PM, Steven Boada wrote:
Well I am doing a lot more than this simple example shows. Point is that
there are nine different points each with their own legend entry.
I could put it all out of the for loops, but it is all already written,
and I'd rather just fix the legend at the
On 10/8/12 11:03 PM, Paul Tremblay wrote:
I often have to make graphs with time series, with each point being the
start of a week. Below is the result I wish:
However, in order to make the secondary x axis the the month labels, I
need something like 40 lines of code. My strategy consists in
On 10/9/12 10:03 PM, Jody Klymak wrote:
Hi Eric,
The pcolormesh docstring notes that it is
much faster than pcolor; the pcolor docstring probably should refer
people to pcolormesh, since matlab users are likely to go straight to
pcolor without realizing that they should be using
On 10/29/12 1:08 PM, Jody Klymak wrote:
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!
I gotta agree. Is this (and the solids object) documented
Why not save to PDF? Drops straight into Powerpoint...
M
On 4/21/14, 4:50 PM, ChaoYue 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. Anyway, thanks to all for
use matplotlib's internal latex parsing:
text(0.2,0.4,text$_{\mathrm{subscript}}$)
M
On 6/12/14, 6:26 AM, Nemanja Savic wrote:
Hi all guys,
I am not able to find answer on my question: how to write subscripts
using default matplotlib font?
best,
--
Nemanja Savić
Hi.
The short answer is yes.
orion:~ % cat A.py
from matplotlib.pyplot import *
print A
plot([0,1],[0,1])
draw()
orion:~ % cat B.py
from matplotlib.pyplot import *
import A
print B
plot([0.5,0.75],[0,1])
draw()
show()
Using ipython:
In [2]: run -i B.py
A
B
and the figure shows both
14 matches
Mail list logo