-Joon Lee said:
Do you have any link to an example plot?
I googled it but not much luck.
Is it like a polar plot without the bottom half?
Regards,
-JJ
On Tue, Mar 2, 2010 at 1:48 AM, R Fritz rfr...@u.washington.edu wrote:
I'd like to be able to generate type C photometry plots
John and T J,
L1587 at lines.py
def set_mfc(self, val):
'alias for set_markerfacecolor'
self.set_markerfacecolor(val, alt=alt)
alt is not defined and it currently raises an exception.
By the way, I noticed that the current approach is to implement
fillstyle for EVERY
I believe it is not just the size of font but the font itself should match.
Depending on your setting, the tex file generated by matplotlib
include preambles related with font setting. For example, below is
mine.
\documentclass{article}
\usepackage{type1cm}
\renewcommand{\rmdefault}{pnc}
It seems that you must turn off autoFontsize first.
the_table.auto_set_font_size(False)
then change th font size.
the_table.set_fontsize(10)
-JJ
On Thu, Feb 25, 2010 at 12:48 PM, afancy grou...@gmail.com wrote:
Hi,
I want to generate a graph with line, and table at the bottom. However, I
Did you try to turn off useblit option?
As mentioned in the comment, that option is only supported in the agg backend.
Regards,
-JJ
On Thu, Feb 25, 2010 at 10:45 PM, David Arnold
dwarnol...@suddenlink.net wrote:
All,
I tried this code from:
On Sat, Feb 27, 2010 at 12:29 PM, Andrea Gavana andrea.gav...@gmail.com wrote:
This code is not doing anything useful as I always get a badness of 0,
although I can see that the new text overlaps quite a lot of other
artists.
Does anyone have some suggestion on how to improve the code?
A
(!) code.
-JJ
On Sat, Feb 27, 2010 at 8:59 PM, Andrea Gavana andrea.gav...@gmail.com wrote:
On 28 February 2010 01:18, Jae-Joon Lee wrote:
On Sat, Feb 27, 2010 at 12:29 PM, Andrea Gavana andrea.gav...@gmail.com
wrote:
This code is not doing anything useful as I always get a badness of 0,
although
On Wed, Feb 24, 2010 at 3:06 AM, Matthias Michler
matthiasmich...@gmx.net wrote:
some time ago somebody proposed an example on the list to circle through all
possible colormaps. In this time cm had an attribute cm.cmapnames, which
hold all these names, but nowerdays (svn-HEAD) this attribute
On Tue, Feb 23, 2010 at 6:45 PM, David Goldsmith
d_l_goldsm...@yahoo.com wrote:
1) why doesn't this:
for cmap in dir(cm):
try:
ax.imshow(image, cmap)
canvas.print_figure('image_'+cmap)
except:
pass
work (i.e., simply bypass those elements of dir(cm) which cause
On Wed, Feb 24, 2010 at 3:56 AM, David Goldsmith
d_l_goldsm...@yahoo.com wrote:
cmap='LUTSIZE' does not create an image: it is an invalid value for imshow's
cmap argument. Many images are created successfully by my loop before
cmap='LUTSIZE' without me calling cla, and Friedrich's soln.
Not sure how to update these in code yet. Let me know when you figure out :)
http://matplotlib.sourceforge.net/users/artists.html#axis-containers
Also I often find that the xlabel is too close to the plot box
(xaxis) is there a way to increase this distance besides making my own
On Mon, Feb 22, 2010 at 11:00 AM, Geoff Bache geoff.ba...@gmail.com wrote:
So I guess I have two questions.
1) Is this a bug? It certainly feels like one...
2) Is there a workaround / what should I do instead?
Try
axessubplot2.autoscale_view(tight=True)
Otherwise, you need to manually
Try
ax = subplot(111, frame_on=False)
ax.xaxis.set_visible(False)
ax.yaxis.set_visible(False)
table(cellText=cellText, colLabels=colLabels)
-JJ
On Tue, Feb 23, 2010 at 4:06 AM, HUSSAIN BOHRA hussainbo...@gmail.com wrote:
Hi,
Can any one tell me, How can I draw only a table in a figure
On Tue, Feb 23, 2010 at 5:43 AM, Kornél Jahn kjahn.pub...@gmail.com wrote:
Hi all!
I am preparing a journal article and the figures should have a fixed width
of 3 inches, with as thin white border around as possible. The figure does
an imshow with equal axes:
My problem is: I do not know in
markers are vector paths, so I don't think you can use images as markers.
But you may overlay your images using imshow. The tricky part is to
figure out the extents of the image.
You may use OffsetImage
See
http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg13203.html
http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg13204.html
-JJ
On Tue, Feb 23, 2010 at 9:22 AM, Sebastian Rhode
sebrh...@googlemail.com wrote:
Hi,
has anyone a good idea how to
This seems to be a bug and I recommend you to file a bug.
This happens because Axis.set_ticklabels method only changes the
attributes of left (or bottom) tick labels.
Meanwhile, try
for t in colorbar.ax.get_yticklabels():
t.set_color(w)
-JJ
On Tue, Feb 23, 2010 at 11:03 AM, Jim Vickroy
It is best to create a figure of a right size in the first place.
If this cannot be done, try something like below.
dpi = 80
fig=figure(1, dpi=dpi)
ax = axes((0,0,1,1))
ax.set_aspect(1)
from matplotlib.transforms import TransformedBbox, Affine2D
w, h = fig.get_size_inches()
bbox =
set_colorbar sets colorbar attribute. So I guess you can just check if
Mappable.colorbar is None or not.
Mappable.colorbar, when set, should be a tuple whose first item is an
image for colorbar and the second item is an colorbar axes.
Regards,
-JJ
On Tue, Feb 16, 2010 at 5:26 AM, Nico Schlömer
out about the colormap attribute? Was that by taking
a good guess in looking at the source code, or are the public
attributes of a class documented?
Cheers,
Nico
On Tue, Feb 16, 2010 at 1:18 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
set_colorbar sets colorbar attribute. So I guess you can
On Tue, Feb 16, 2010 at 4:05 PM, Ernest Adrogué eadro...@gmx.net wrote:
\vspace{10pts} does insert whitespace, however I am not sure if
it's the proper way of doing it...
Can you (or someone else) confirm this? I don't think pts is a
proper tex unit and it should be \vspace{10pt}. Maybe this
If what you want is to have more padding for the major tick labels, I
recommend you to use
rcParams['xtick.major.pad'] = 20
If you don't like to change the global setting, you may set the
ticklabel padding for an specific axis. Try
for tck in ax.xaxis.get_major_ticks():
tck.set_pad(20)
On Tue, Feb 16, 2010 at 5:25 PM, Filipe Pires Alvarenga Fernandes
ocef...@gmail.com wrote:
I haven't notice the s before when using pts, but what is really
strange is that pt does not work!
As I said, it is not supposed to work, because of some technical
reason. When there is a single line of
On Tue, Feb 16, 2010 at 2:15 PM, duckman tduck...@crowellsystems.com wrote:
I am trying to make the table at the bottom and the lines the same color. I
took the code from one of the online examples and modified it to do most of
what I want but cannot get the color in the table working
Try
ax1.xaxis.offsetText.set_visible(False)
where ax1 is the upper axes.
Regards,
-JJ
On Mon, Feb 15, 2010 at 4:50 AM, Jan Strube curious...@gmail.com wrote:
Hi Jeff,
thanks for your quick reply.
Unfortunately, the line you sent me doesn't have any effect on the plot,
either before or
Is there any reason that you need to find out which axes is a color
bar axes from the list of axes? Can you just keep references to
colorbars you create?
cbar = colorbar()
cax = cbar.ax
cax is the axes instance of the colobar you just created.
Regards,
-JJ
On Mon, Feb 15, 2010 at 12:04 PM,
On Mon, Feb 15, 2010 at 2:32 AM, rcnelson rnelsonc...@gmail.com wrote:
1) Are there any plans or would it make sense to add another keyword to the
pyplot.arrow function that allows you to choose the arrow class you would
like to use? The default could be FancyArrow so that the original usage of
I cannot reproduce this error both with 0.99.1 maintenance branch and
the current svn (with GtkAgg backend).
What version of matplotlib and what backend are you using?
http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html
Regards,
-JJ
On Sun, Feb 14, 2010 at 11:36 PM, David Arnold
some other developers can confirm (or dispute) this.
For this kind of work, you need to understand some of internals of
matplotlib, and I recommend you to go through the matplotlib sources.
Regards,
-JJ
--Nico
On Mon, Feb 15, 2010 at 6:16 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote
On Sat, Feb 13, 2010 at 11:28 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
Well, I'm not quite sure what to say to your claim. In certain instances I
am trying to get through to someone here that something is missing for
newbies. In one word, pedagogy (as perhaps in a text book, not a
I have added a bbox support for restore_region, but I'm afraid that
this feature is not well tested. And I guess what you find is,
unfortunately, a bug. While I'll try to push the changes to the svn
tomorrow, you may try to monkey-patch with following code.
from matplotlib.transforms import
If you're happy with the default formatter behavior (which seems to
match with your #3 requirement), just reuse it.
class MyFormatter(ScalarFormatter):
def __call__(self, val, pos=None):
if val 0:
return ''
else:
return ScalarFormatter.__call__(self, val)
On Fri, Feb 12, 2010 at 1:48 PM, Tomasz Koziara
t.kozi...@civil.gla.ac.uk wrote:
but then axis labels or even numbering gets cut off. On the other hand
playing with:
You need to manually adjust subplot parameters
You're already using ax.legend, what kind of OO way do you want?
Instead of calling plt.legend, you may do
ax.legend([s],[str(i)])
Or, if you know what you're doing, you can do
leg = ax.legend([s],[''], loc=0)
and in the for loop,
leg.texts[0].set_text(str(i))
Regards,
-JJ
On Thu,
Or, you may fool the algorithm to find the best location by adding
invisible lines.
For example,
axessubplot4.set_autoscale_on(False)
l1, = axessubplot4.plot([4, 5], [8, 18])
l1.set_visible(False)
axessubplot4.set_autoscale_on(True)
Regards,
-JJ
On Thu, Feb 11, 2010 at 10:58 AM, John Hunter
On Thu, Feb 11, 2010 at 3:55 PM, ristretto ristretto...@gmail.com wrote:
I'm not sure I'll ever really understand Matplotlib. Why I had to do this,
I don't really know. It's hard to spec out projects when you think that
setting the font on some text should take no time at all, but it takes
The current matplotlib does not have any automatic way as far as I
know (any contribution will be appreciated).
On the other hand, instead of explicitly specifying the ticks and
ticklabels, you may try to reduce the number of ticks.
gca().xaxis.get_major_locator()._nbins=4
Regards,
-JJ
On
grid takes an optional argument which. Unfortunately this is not
properly documented with pylab.grid and Axes.grid.
But see
http://matplotlib.sourceforge.net/api/axis_api.html?highlight=grid#matplotlib.axis.Axis.grid
grid(True) # this turns on gridlines for major ticks
grid(True, which=minor) #
I cannot reproduce it with Agg backend and ps backend. I tried both
svn version and 0.99 maint. version.
So, maybe this is a bug in mac os X backend?
Do you see a same problem with the ps output? If so, can you post your
ouput ps file?
Regards,
-JJ
On Mon, Feb 8, 2010 at 3:26 PM, Tomasz
Figure.draw_artist is just a convenience function.
def draw_artist(self, a):
draw :class:`matplotlib.artist.Artist` instance *a* only --
this is available only after the figure is drawn
assert self._cachedRenderer is not None
Copying a matplotlib canvas (or a figure, or an axes) is not easy. You
cannot just rebind it. You need to copy all the hierarchy of
underlying artists. Also the attributes of artists need to be adjusted
accordingly.
And best option in my opinion is just to create another canvas using
the code that
axes_grid uses a custome axes class. See
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#axisline
For more details, see
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/axislines.html
To make ticklabel visible, you may do
This is not a bug.
The exception is raised simply because textartist.figure is None
(and it is None because you never set it).
textartist you created is not properly set up (no figure, no axes,
no transform). You may do
textartist = Text(0.5, 0.5, Foo)
textartist.set_figure(fig)
try
ax1.axis(v)
-JJ
On Sun, Feb 7, 2010 at 5:16 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
The segment below is supposed to plot two columns of (x,y) data and do
it in an area 640x480. Apparently, I'm missing how to use v to get this
done. It dies at col.axis(v) with list object
This is a known bug, and I think I fixed it in the svn. Meanwhile, you
may use the monkey patching.
Insert these lines in your script (before you call clabel).
Regards,
-JJ
import matplotlib.blocking_input as blocking_input
def mouse_event_stop(self, event ):
...@suddenlink.net wrote:
JJ,
Very nice repair, as this works precisely as it should. I use this tool in
Matlab all the time when teaching multivariable calculus.
D.
On Feb 6, 2010, at 2:41 PM, Jae-Joon Lee wrote:
This is a known bug, and I think I fixed it in the svn. Meanwhile, you
may use
On Fri, Feb 5, 2010 at 10:10 AM, Eymen Alyaz eal...@mpifr-bonn.mpg.de wrote:
Is there a way to automatically correct the area of figure and resize it
such that every box drawn is visible?
Things like axes position is given in normalized figure coordinates,
thus while you can change the figure
Current pick implementation explicitly checks if the event is inside the
axes.
So, you cannot pick artists outside the axes area. This seems more like an
intended feature than a bug, but I may be wrong. And my guess is that this
is to prevent picking invisible artists (as they are clipped).
While
Are you using the axes_grid toolkit?
Standard matplotlib axis instance does not have major_ticklabels
attribute, while axes_grid axis does.
Please post a simple, but complete example that can be run and tested.
Regards,
-JJ
On Sun, Jan 31, 2010 at 11:06 AM, kc106_2005-matplot...@yahoo.com
See if the example below works.
plot([1,2,3], label=test)
a=legend()
import matplotlib.offsetbox as offsetbox
txt=offsetbox.TextArea(Test 2)
box = a._legend_box
box.get_children().append(txt)
box.set_figure(box.figure)
For more control of legend, see the link below.
Here is a slightly revised version of your script.
It has a separate axes for labeling whose width is determined by the
maximum width of the labels (using MaxExtent from axes_grid toolkit).
Give it a try and see if it fits your needs.
Regards,
-JJ
import numpy as np
import matplotlib.pyplot
On Mon, Feb 1, 2010 at 4:30 PM, Ben Axelrod baxel...@coroware.com wrote:
This still seems like a regression bug to me. Especially since
matplotlib's own example code clearly shows that picking labels, titles, and
tick labels outside the axes region should be possible with the standard
=(0.2,0.1)) # This line has no effect.
fig.add_axes(host)
host.set_xlim(0, 2)
host.set_ylim(0, 2)
host.legend()
plt.draw()
plt.show()
Jae-Joon Lee wrote:
Are you using the axes_grid toolkit?
Standard matplotlib axis instance does not have major_ticklabels
attribute, while
I did some refactoring and now the annotation is also draggable..
I also added an example,
examples/animation/draggable_legend.py
Regards,
-JJ
On Fri, Jan 29, 2010 at 10:28 AM, John Hunter jdh2...@gmail.com wrote:
On Thu, Jan 28, 2010 at 10:14 PM, Fernando Perez fperez@gmail.com wrote:
You mean removing the the axes frame?
subplot(111, frame_on=False)
I'm sorry but it is not clear what you want.
Regards,
-JJ
On Tue, Jan 26, 2010 at 4:18 AM, Michael Cohen mco...@caltech.edu wrote:
Hi all,
Thanks for the help so far. One more question -
How do I completely remove the
If you do not mind the output size slightly adjusted, try
savefig(somename.png, bbox_inches=tight)
Regards,
-JJ
On Tue, Jan 26, 2010 at 3:27 PM, John Hunter jdh2...@gmail.com wrote:
On Tue, Jan 26, 2010 at 12:00 PM, cwurld cwu...@yahoo.com wrote:
Hi,
I am trying to generate some pngs
.
What you suggest here does in fact remove the bounding rectangle. Now, how
can I get rid of the tick marks?
Cheers
Michael
On 01/26/2010 02:18 PM, Jae-Joon Lee wrote:
You mean removing the the axes frame?
subplot(111, frame_on=False)
I'm sorry but it is not clear what you want
*bbox_transform* expects a Transform instance.
ax = subplot(111)
ax2 = inset_axes(ax, width=3, height=2, loc=3,
bbox_to_anchor=(0.1, 0.1),
bbox_transform=ax.figure.transFigure)
Note that, bbox_to_anchor with a tuple of two numbers creates a bbox
with
On Mon, Jan 25, 2010 at 9:14 AM, Dimitri Linten
dimitri.lin...@gmail.com wrote:
What is the best way to do this ?
Please explain what you want and what your issue is.
Do not expect us (developers or other users) to study your code. If
possible, post a small stand-alone example that others can
On Thu, Jan 21, 2010 at 9:37 AM, Kurt Forrester
kurtforres...@hotmail.com wrote:
The first one reported None.
The second one reported False.
And the text is still not drawn with the second example?
-JJ
--
Throughout
On Thu, Jan 21, 2010 at 12:53 PM, Kurt Forrester
kurtforres...@hotmail.com wrote:
Sorry the text IS drawn in the second example. So the setting of the
attribute after it is drawn (before it is shown) seems to do the trick.
Kurt
It seems that somehow the annotation_clip parameter is ignored
Do you happen to use the svn version?
Regards,
-JJ
On Thu, Jan 21, 2010 at 3:06 PM, Gökhan Sever gokhanse...@gmail.com wrote:
Possibly a question for JJ:
pary.axis[right].get_helper()._label_angles[right]=270
This lines complain in my script when I try to run it:
Traceback (most
On Thu, Jan 21, 2010 at 4:13 PM, Kurt Forrester
kurtforres...@hotmail.com wrote:
Just to add one more query to the thread, do you consider a point on a
vertex of the axes to be a candidate for annotation without clipping? That
is to say if there is a point (0,0) I wish to annotate, and the
On Thu, Jan 21, 2010 at 2:31 PM, Andrew Kelly ndruke...@gmail.com wrote:
Turning label2On = true turned on the labels as directed. However, the
function label2.set_text(New Tick Label) does not update the
actual text. I can set_size(), etc and it works, but set_text() does not
On Thu, Jan 21, 2010 at 6:16 PM, Gökhan Sever gokhanse...@gmail.com wrote:
Yes, it is running from the latest trunk check-out.
The internals of how ticks, ticklables work in the svn version have
significantly changed, which I hope is an improvement. Unfortunately,
_label_angles is deprecated and
in the saved image: http://img46.imageshack.us/img46/3849/imagevp.png
The code that produces that script:
http://code.google.com/p/ccnworks/source/browse/trunk/dccn_plot.py
Any ideas?
On Thu, Jan 21, 2010 at 5:45 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
On Thu, Jan 21, 2010 at 6:16 PM, Gökhan
On Thu, Jan 21, 2010 at 9:24 PM, Eric Firing efir...@hawaii.edu wrote:
I changed my mind and decided you are correct in thinking the change should
be made in contour.py. I now make the bottom boundary adjustment at the
last possible time, and in such a way that it does not change the levels
On Wed, Jan 20, 2010 at 9:17 AM, Mario Mech m...@meteo.uni-koeln.de wrote:
cl = cb.ax.get_yticklabels()
results in a list of Text objects like Text(0,0,''). So my problem is more to
get the TickLabels for vertical colorbars.
Can you elaborate why you need to do this?
This is a general
On Tue, Jan 19, 2010 at 3:08 PM, Kurt Forrester
kurtforres...@hotmail.com wrote:
Additional information that I forgot to supply was that on python
2.5/windows/matplotlib 0.98.xxx (my work machine, not accessible at the
moment for the subversion number) this worked fine and there may have been a
On Wed, Jan 20, 2010 at 12:12 PM, Mario Mech m...@meteo.uni-koeln.de wrote:
the smallest value (0.0) is labeled with -0.0. I just want to get rid of
the minus sign.
This is because the actual value is -9.e-06 (this inherits
from the levels of contour).
While I think we're fixing a
On Wed, Jan 20, 2010 at 1:13 PM, Kurt Forrester
kurtforres...@hotmail.com wrote:
I am not too sure what the design behaviour is but it is certainly not doing
what I expected. I do appreciate your effort in resolving this. Please do
let me know if there are any further tests I can perform to
On Wed, Jan 20, 2010 at 2:04 PM, Eric Firing efir...@hawaii.edu wrote:
The reason for this fudge in contour is that contourf fills
lower z = upper
for each consecutive pair of contour levels.
When the minimum value of z coincides with the lowest level, then regions
with that minimum are left
On Wed, Jan 20, 2010 at 3:07 PM, Kurt Forrester
kurtforres...@hotmail.com wrote:
the output from the script is:
annotation_clip = None
checking is point is inside the axes : [ 30.875 233. ]
contains_point = 0
_check_xy returning False
exit without drawing due to annotation_clip
On Tue, Jan 19, 2010 at 2:48 AM, Kurt Forrester
kurtforres...@hotmail.com wrote:
I modified the script for the hax. annotate(...) to include the
annotate_clip=False, however there is no change in the behaviour of the
arrows.
It should be annotation_clip not annotate_clip, but it may be just a
On Mon, Jan 18, 2010 at 5:16 PM, Damon McDougall
d.mcdoug...@warwick.ac.uk wrote:
The figure is actually cropped.
Correct.
Is there another way around this that will get rid of the whitespace and have
the physical figure be 483.69687pt wide?
Do not use bbox_inches=tight. Instead adjust the
This is generally a very difficult thing to do, as the position and
the extent of the text is determined when the figure is drawn.
The best way, I guess, is to create a customized Text class, but I do
not recommend this unless you're familiar with matplotlib internals.
If you're using svn
a
look later.
Regards,
-JJ
On Tue, Jan 19, 2010 at 9:47 PM, John Hunter jdh2...@gmail.com wrote:
On Tue, Jan 19, 2010 at 4:34 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
This is generally a very difficult thing to do, as the position and
the extent of the text is determined when the figure
http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels
The above example is for ticklabels, but can be easily adopted for axes title.
Regards,
-JJ
On Mon, Jan 18, 2010 at 12:07 PM, Jeremy Lewi jl...@intellisis.com wrote:
Hi,
The title for my axes is
This is the feature that is not properly documented.
You should call annotate with optional keyword
annotation_clip=False,
See below for the details.
http://matplotlib.sourceforge.net/api/artist_api.html?highlight=annotation#matplotlib.text.Annotation.set_annotation_clip
I'll fix the
The svn version has a new keyword bbox_extra_artists, which could be used.
But, there is no easy way for the released version of matplotlib.
Below is a workaround you may use, but it's a bit complicated.
Regards,
-JJ
fig = figure(1)
ax = fig.add_subplot(111)
l1, = ax.plot([1,2,3])
leg =
Colorbar axes is a rather special and things need to be set during the
initialization.
Here is a slightly modified version of your script.
While it does not produces error, I'm not sure if the result is correct.
-JJ
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.dates
On Thu, Jan 14, 2010 at 4:38 AM, Mark Bakker mark...@gmail.com wrote:
Does matplotlib have a routine that can fit a cubic Bezier curve through an
array of 2D points?
I saw some Bezier routines in Path, but couldn't find what I am looking for.
As far as I know, no.
If matplotlib doesn't
This has indeed been fixed.
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/ticker.py?r1=7677r2=7980
Some minor changes may not be listed in the changelog.
Regards,
-JJ
On Thu, Jan 14, 2010 at 12:29 PM, Jeremy Lewi jl...@intellisis.com wrote:
Hello,
On Wed, Jan 13, 2010 at 3:16 AM, John Reid j.r...@mail.cryst.bbk.ac.uk wrote:
Jae-Joon Lee wrote:
I'm afraid that there is not much I can help anymore.
Just in case, does the same error occur when my patch is not applied?
Is it an error or just a warning? If it is an error, can you post a
full
On Tue, Jan 12, 2010 at 9:56 PM, Gökhan Sever gokhanse...@gmail.com wrote:
What could be causing this discrepancy? Is there any way to use an
alternative PS creator with MPL? or an option to increase e.g. bits per
pixel option somewhere in the configuration?
There can be a lot of things.
On Wed, Jan 13, 2010 at 11:32 AM, Gökhan Sever gokhanse...@gmail.com wrote:
I printed the PNG and PS file. The result looks same on paper as well. I was
comparing the two ps file one from IDL one from MPL. IDL looks neat both on
the screen and printed.
Are you saying that the printout of the
On Tue, Jan 12, 2010 at 12:21 PM, dugolo mad...@gmail.com wrote:
Basically, I would like to put ax1 on both fig1 and fig2 without having to
repeat all of the code for plots on ax1.
The Axes instances in matplotlib can only have one parent figure,
i.e., the axes cannot be shared among different
if turning that on and off
make any difference.
Regards,
-JJ
On Tue, Jan 12, 2010 at 5:29 AM, John Reid j.r...@mail.cryst.bbk.ac.uk wrote:
Jae-Joon Lee wrote:
When you check out the svn, please try to apply the patch attached.
patch -p1 ps_distiller.patch
I hope this solves your problem
On Mon, Jan 11, 2010 at 3:20 PM, Gökhan Sever gokhanse...@gmail.com wrote:
Another thing I noted in these images, Qt4Agg produced one looks much
prettier to my eyes than the PS. What could be causing the jiggly rendering
in the PS?
The rendering quality of the fonts depends on a lot of
You code works okay with the current svn.
See if changing the distiller option makes any difference
(ps.usedistiller in the rc file).
The best would be for you to upgrade to the recent release of
matplotlib if possible.
Regards,
-JJ
On Mon, Jan 11, 2010 at 8:35 AM, John Reid
See this example
http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_hist.html
Or, you're willing to learn something new, you may use axes_grid toolkit.
http://matplotlib.sourceforge.net/examples/axes_grid/scatter_hist.html
-JJ
First of all, to use \color with TeX, you need to use color
package, i.e., you need to modify your latex preamble to include that
package. This can be done by
import matplotlib.pyplot as plt
plt.rcParams[text.latex.preamble] = r\usepackage{color}
I guess the error you encounter is because of
On Sat, Jan 9, 2010 at 4:27 PM, Dominik Szczerba domi...@itis.ethz.ch wrote:
When using white over back color scheme the legend() is unreadable, with
apparently hard-coded white legend background - or is there a way to set
it in the rc file?
Unfortunately no.
I recommend you to manually
On Mon, Jan 11, 2010 at 2:38 PM, Dominik Szczerba domi...@itis.ethz.ch wrote:
Hmmm, that property really deserves its own rc param, but if you do not
like it, it should at least be somewhere automatically set to the
current background color to be resistant against people like me ;) I
would be
when I set
ps.usedistiller to xpdf. With False or ghostscript it works ok but gives
me output with different page sizes. AFAIK xpdf is the way to go for
publication quality graphics. Do you know how I can get it to work? Is
it worth trying the svn version?
Thanks,
John.
Jae-Joon Lee wrote
Contour will work as expected if the axes is in log scale. See below.
z = np.arange(100).reshape((10,10))
x = np.logspace(0, 4, 10)
y = np.logspace(0, 4, 10)
ax1 = subplot(121)
ax1.contour(np.log10(x), np.log10(y), z)
ax2 = subplot(122)
ax2.set_xscale(log)
ax2.set_yscale(log)
ax2.contour(x, y,
On Mon, Jan 11, 2010 at 6:49 PM, John Reid j.r...@mail.cryst.bbk.ac.uk wrote:
Thanks for help so far. Any more ideas? I'll try the svn if it is just a
case of checking it out and compiling.
Please try.
I don't think the current svn version will make any difference. But,
at least I can send
When you check out the svn, please try to apply the patch attached.
patch -p1 ps_distiller.patch
I hope this solves your problem.
Regards,
-JJ
On Mon, Jan 11, 2010 at 7:25 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
On Mon, Jan 11, 2010 at 6:49 PM, John Reid j.r...@mail.cryst.bbk.ac.uk
On Sat, Jan 9, 2010 at 8:20 AM, Eric Emsellem eemse...@eso.org wrote:
Hi
thanks A LOT for taking the time to test this and for the suggestions.
Yes, pcolormesh is needed (or at least I think) because in the real
example (the figures I am trying to make) the pixels are rotated meaning
that
I think the current method names of Annotation class (originally from
the Text class) is a bit confusing.
And this needs to be fixed.
Anyhow, instead of calling set_position method, you need to set the
xytext attribute directly.
this_annotation.xytext = (event.x, event.y)
Regards,
-JJ
301 - 400 of 777 matches
Mail list logo