Hi,
I am preparing figures with the following matplotlib preamble:
plt.rc('font', **{'family':'serif', 'serif':['Computer Modern Roman'],
'monospace':['Computer Modern Typewriter']})
params = {'backend': 'ps',
'text.latex.preamble': [r\usepackage{upgreek},
On 06/09/2012 14:49, Benjamin Root
wrote:
On Thu, Sep 6, 2012 at 6:54 AM, Mogliii mogl...@gmx.net
wrote:
Hi,
I am preparing figures with the following matplotlib
preamble
I get the attached result. The \texttt{} is rendered differently by
matplotlib and latex.
I am using the default latex fonts, and below is my preamble.
rc('font', **{'family':'serif', 'serif':['Computer Modern Roman']})
params = {'backend': 'pdf',
'axes.labelsize': 12,
On 15/08/2012 09:56, Mogliii wrote:
I get the attached result. The \texttt{} is rendered differently
by matplotlib and latex.
I am using the default latex fonts, and below is my preamble.
rc('font', **{'family':'serif
Hi,
In my script a variable number of graphs is generated. I want to place
them in one column with arbitrary number of rows onto an A4 canvas (for
pdf export).
Unfortunately the figsize directive seems to have no effect. The figure
is always 8x6 inch.
Which code do I have to use in this case?
a wrong conversion of inch to cm (2.58 before).
Thank you for your help,
Mogliii
The final code:
#
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import numpy as np
x = np.arange(10)
y = np.arange(10)
fig_width_cm = 21
Even better:
f, axarr = plt.subplots(allplots, 1, figsize = fig_size)
Its always difficult to predict which **kwargs could/would be valid...
--
Live Security Virtual Conference
Exclusive live event will cover all the
Hi,
on the computer where it does not work the backend is 'agg'. In a
virtual machine, where it works, the backend shows 'TkAgg'
Now on the machine it does not work I run the following:
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
ImportError: cannot import name
Hi,
Kubuntu 12.04 with python 2.7 and matplotlib 1.1.1
Suddenly the matplotlib window does not open anymore. I tried from
konsole with pyton, ipython and also from eclipse with pydev. Last time
I know it worked was maybe 5 days ago, haven't tried since then.
In ipython --pylab it looks like
Hi,
I have a question: Is there a way with matplotlib to see influence of
code changes on the plot without explicitly recompiling?
My workflow looks like this: I'm writing single files for plots in
Eclipse with pydev. I normally copy/paste sections from previous
figures. I don't want to do this
Hi,
I am trying to place some arrows using
http://matplotlib.sourceforge.net/api/axes_api.html?highlight=arrow#matplotlib.axes.Axes.arrow
And unfortunately the arrows are not nice (see attached screenshot). How
can the line end be changed to round as, for example, with plot. Or
anyone can give a
(9.5,15,0,-9.6,head_width=0.45,head_length=3,fc='k',
length_includes_head=True)
On 27/10/2011 15:56, Daniel Hyams wrote:
I think that the code that generated the screenshot needs to be
posted; otherwise no one knows what is being attempted
On Thu, Oct 27, 2011 at 10:50 AM, mogliii mogl
not being
closed correctly, so the PDF renderer was not joining the ends of
the stroke.
Can you confirm that this branch resolves your issue?
https://github.com/matplotlib/matplotlib/pull/559
Mike
On 10/27/2011 11:36 AM, mogliii wrote
I could already answer one question by myself about the top margin in
gridspec.
'''1) I would like to reduce the top margin. For that I though I can do
something like this:
gs = gridspec.GridSpec(2, 1, width_ratios=[2,1])
- gs.update(bottom=0.2, left=0.2, hspace=0.05)
+ gs.update(bottom=0.2,
Hi,
I am currently learning metplotlib to make beautiful figures for a LaTeX
thesis.
I will need to have graphs with a break in the x-axis, comparable to this
one
http://www.originlab.com/www/Products/images/Date_Axis_plot_with_XY_break_500px.png
As I found out, there is no native support for
15 matches
Mail list logo