the matplotlib files.
Did a search for this but I can't find the solution so sorry if this is
really easy?
Cheers,
Jeff
--
________
Jeffrey Spencer
jeffspenc...@gmail.com
--
The ultimate al
Essentially, I am having the same problem but installed from SVN. How do
you install extra backends? I haven't seen where to do this. Although I
want the TKAgg but I have installed TK/TCL.
I am running 10.04 Ubuntu.
Cheers,
Jeff
On 02/18/2011 03:37 PM, Forest Yang wrote:
> Hi,
>
> I am using
sts/baseline_images/test_axes/canonical.png ->
build/lib.linux-x86_64-2.6/matplotlib/tests/baseline_images/test_axes
copying lib/matplotlib/tests/baseline_images/test_image/image_interps.pdf ->
build/lib.linux-x86_64-2.6/matplotlib/tests/baseline_images/test_image
running build_ext
On Fri, F
imal('2.8')
File
"/usr/local/lib/python2.6/dist-packages/matplotlib/backends/backend_wx.py",
line 65, in
raise ImportError(missingwx)
ImportError: Matplotlib backend_wx and backend_wxagg require wxPython
. I was wondering how to specify the minor formatter text size.
Link:
http://stackoverflow.com/questions/6828825/plotting-scientific-format-on-the-axis-label-and-different-size-minor-formatter-t
Cheers,
Jeff
--
Jeffrey Spencer
jeffspenc...@gmail.com
label('Recognition Accuracy')
set_spineLineWidth(ax,spineLineWidth)
clear_spines(ax)
ax.yaxis.set_ticks_position('left')
ax.xaxis.set_ticks_position('bottom')
#ax.xaxis.set_minor_formatter(tick.FuncFormatter(showOnlySomeTicks))
#plt.legend()
for i in outExt:
plt.savefig(&
2011 06:53 AM, Jeffrey Spencer wrote:
>> I created this graph below but if I set the y axis upper limit to 100.
>> It cuts off the top half of the dots which are at 100. I wasn't sure how
>> to get the dots to show properly like now but set the y-axis upper limit
>> to 100 i
You can use dpi=600 as a parameter to increase the resolution but I'm
not sure if that's what you mean. If you mean the actual compression
strategy used like to Jpeg2000 per se. Might have to do that after
saving the file with an image library (for example, PIL).
Cheers,
Jeff
On 09/06/2011 03:
import matplotlib.ticker as tick
def showOnlySomeTicks(x, pos):
s = str(int(x))
if x == 5000:
return'5e3'#'%.0e' % x
return ''
ax = plt.axes([0.165,0.2,0.95-0.24,0.95-0.2])
ax.xaxis.set_minor_formatter(tick.FuncFormatter(showOnlySomeTicks))
Then in the code something ju
Not sure what you mean global axis but I think I was trying to do
something similar with this. This is the chunk of one subplot.
Specifically look at last three lines:
ax = fig.add_subplot(2,2,2)
ax.set_title('b) 5')
ax.set_ylim((0,yUpper))
for i in tempRun:
ax.plot(x,actSum[1,semi,i,semi],
I was wondering whether this feature has been built-in via specgram (maybe
needs a transformation) or if somebody has wrote something to easily
implement. If not, the current best method of going about it as I don't see
it in the documentation.
Cheers,
Jeff
I am trying to make a plot with a colorbar that has a reduced axis over
which the colorbar is executed.
This is set via passing in a norm to contourf:
logNorm = colors.Normalize(vmax=0,vmin=-100)
surf = ax.contourf(X,Y,logZ, map_scale, cmap=cm.jet, norm=logNorm)
The output of this
i, Jul 27, 2012 at 3:52 PM, Jeffrey Spencer wrote:
> I am trying to make a plot with a colorbar that has a reduced axis over
> which the colorbar is executed.
>
> This is set via passing in a norm to contourf:
> logNorm = colors.Normalize(vmax=0,vmin=-100)
> surf
6 7:52 PM, Jeffrey Spencer wrote:
> > I am trying to make a plot with a colorbar that has a reduced axis over
> > which the colorbar is executed.
> >
> > This is set via passing in a norm to contourf:
> > logNorm = colors.Normalize(vmax=0,vmin=-100)
> &g
doesn't do anything because original image is already a
low resolution. I would expect the other modes do do this where the image
isn't already output and have to rasterize the image when saving like
pcolormesh and contour plots.
Cheers,
Jeff
On Sat, Jul 28, 2012 at 1:43 PM, Jeffrey S
just the one that is not passed in. So the
only case where it sets the limits is if both vmin and vmax are passed to
the function. Is this the desired behavior because from the docstring it
seems this is incorrect.
Cheers,
Jeff
On Sat, Jul 28, 2012 at 2:15 PM, Jeffrey Spencer wrote:
> I figu
12 at 12:32 AM, Eric Firing wrote:
> On 2012/07/28 10:17 PM, Jeffrey Spencer wrote:
>
>> Think I figured out an actual bug in the function: colors.Normalize().
>>
>> The behavior states that if vmin or vmax is passed in as None it should
>> take the minimum or maximu
e know.
Cheers,
Jeff
On Mon, Jul 30, 2012 at 2:31 AM, Eric Firing wrote:
> On 2012/07/29 5:13 AM, Jeffrey Spencer wrote:
>
>> Eric,
>>
>> Normalize appears to be working correctly and as you stated above but
>> when passed into contourf appears to have inconsist
For example running this code and then fig.tight_layout(). The second axis
isn't recognized. Is there a way to add it to the tight_layout spec or a
better method.
out = ones(200)
fign = 52
h, w = freqz(out)
fig = figure(fign)
semilogy(h,abs(w)/abs(max(w)), 'b', label='Mag')
ylim(0.01,1.2)
ylabel('
Thanks, sounds good just wanted to know if possible now. I will use
something else.
Cheers
On Aug 29, 2012 5:53 PM, "Eric Firing" wrote:
> On 2012/08/28 9:11 PM, Jeffrey Spencer wrote:
> > For example running this code and then fig.tight_layout(). The second
> > axis i
I want to use IPA vowel labels in my figures and to do that I need to load
the package in latex \usepackage{tipa}. Is this possible as searching
online besides using the new backend "pgf" I haven't seen how to manually
select latex packages to load when using tex. Is this possible?
Also a side not
I have version 1.2.x of matplotlib. The minimal example shows the case
below. The back wall will lose its lines. Is there a reason for this? Is
there a transparent layer there so eps has to put it as a solid wall? If
so, is there a way to remove that transparent layer?
Pdf and the other backends h
I have three different versions of matplotlib that all output different
file sizes with matplotlib 1.1.1 providing the smallest. This is for the
same exact script. I can post the script if that helps.
MPL 1.4.x: 539.32kb, Ubuntu 12.10
MPL 1.1.1: 172.56kb Ubuntu 12.10
MPL 1.2.1: 475.9kb, Ubuntu 13.
I have old scripts I had made that I was rerunning in newer versions of
matplotlib. They now fail because the function requires dashes to be
greater than 0. I have them set to zero as below and it still throws the
error. I had to set the zero in the middle to 1e-12 to get around this but
is this th
with the cairo backend. The characters were missing from the
output pdf file but it appeared it would be a smaller file size than the
matplotlib backend but could have had to do with the font embedding.
Cheers
On Wed, Jul 31, 2013 at 3:43 AM, Eric Firing wrote:
> On 2013/07/29 9:17 PM,
Pages: 1
Encrypted: no
Page size: 245.081 x 151.466 pts
File size: 49126 bytes
On Wed, Jul 31, 2013 at 3:43 AM, Eric Firing wrote:
> On 2013/07/29 9:17 PM, Jeffrey Spencer wrote:
> > I have three different versions of matplotlib that all output different
>
On 07/30/2013 04:20 PM, Jeffrey Spencer wrote:
>
> Michael,
>
> Thanks that is very informative. Answers most of the problems I was
> having and read MEP14 which looks really useful
>
> That being said does the ps backend subset the fonts or use collections
> for drawin
Aug 1, 2013 at 12:59 AM, Michael Droettboom wrote:
> On 07/31/2013 10:38 AM, Jeffrey Spencer wrote:
>
> Michael,
>
> Pdftocairo is a good tool to know so thanks for that tip.
>
> I still think currently it is a regression with the current 'stamp'
> me
You can try fig.canvas.draw() to draw but as I have never tried the above
not sure whether it will work.
Cheers
On Tue, Jul 30, 2013 at 10:13 AM, K.-Michael Aye wrote:
> Hi!
>
> Is there a way to copy an axes object into different figures?
> The idea would be to first create a valuable plot, sa
Should have mentioned but the artist is like self in most classes so really
just need to pass in the renderer.
The renderer can be obtained from fig.canvas.get_renderer() so can pass
this to fig.draw(fig.canvas.get_renderer()). I have never done it this way
but should have the same results I am gu
Yes, I see that now. I hadn't noticed that the face color for the bottom of
the 3d plot is off as well. Thanks for the update and keep me posted.
Cheers,
Jeff
On Sat, Aug 3, 2013 at 3:41 AM, Benjamin Root wrote:
>
>
>
> On Fri, Jul 26, 2013 at 4:41 PM, Jeffrey Spencer
>
I think the function should be np.all(dash_list <= 0.0) instead of np.any?
This works 100% fine on my machine so I think it just hangs if all values
are less than or equal to zero. That hangs on my machine as you stated.
>From digging into that I also realized I could have put (None, None) to get
Have a look here why Mathcal works in all backends:
http://matplotlib.org/users/mathtext.html
They give an example for an interactive backend which means it would work
with any output format in the link you provided. Could also use \textcolor
for .pdf output as well since the text rendering would
; shown only partially. In contrast, for pdf or svg output, the page size is
> adapted to the figure size -- but in those cases \textcolor does not work...
>
>
> On Wed 14 Aug 2013 03:34:13 CEST, Jeffrey Spencer wrote:
>
>> Have a look here why Mathcal works in all backends:
&g
ipt; for one thing, when I need the
> plot to be 'big' [using plt.figure(figsize=(13.0, 13.0))], the ps file
> created seems to be an A4 format with the plot not fitting onto it: it is
> shown only partially. In contrast, for pdf or svg output, the page size is
> adapted to the f
35 matches
Mail list logo