[Matplotlib-users] mplot3d and ticks

2011-04-16 Thread Giovanni Luca Ciampaglia
Is there a way to control the distance between the axis label and the 
tick labels with mplot3d.Axes3D? For small figure sizes they overlap and 
I haven't found a way to fix that. My last resort was to remove the tick 
labels but that sucks for publication-quality plots.

Cheers,
-- 
Giovanni Luca Ciampaglia

Ph.D. Candidate
Faculty of Informatics
University of Lugano
Web: http://www.inf.usi.ch/phd/ciampaglia/

Bertastraße 36 ∙ 8003 Zürich ∙ Switzerland

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Saving to PDF does not use alpha information for LineCollection?

2011-03-30 Thread Giovanni Luca Ciampaglia

Attached code for reproducing the problem

python bug.py --> lc.pdf, lc.png

I noticed a similar bug report posted some time ago on matplotlib-devel 
by Fernando Perez.


http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg05133.html

I am on 0.99.3. Has this been fixed in 1.0? I could not find any mention 
of it on the changelog ...


Cheers,

--
Giovanni L. Ciampaglia
PhD Student
University of Lugano, MACS Lab
import matplotlib.pyplot as pp
from matplotlib.collections import LineCollection
from matplotlib.colors import colorConverter
import numpy as np
from numpy.random import normal

a = 0.5
x = np.arange(100)
Y = normal(size=(10,100))
coll = LineCollection([ np.c_[x,y] for y in Y ],
colors=colorConverter.to_rgba_array('k', a))

pp.figure()
ax = pp.gca()
ax.add_collection(coll)
pp.axis('tight')
pp.draw()
pp.savefig('lc.pdf', format='pdf')
pp.savefig('lc.png', format='png')

pp.show()

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] savefig not deducing file format

2011-03-25 Thread Giovanni Luca Ciampaglia
Ah, sorry for the duplicate message!

Cheers,

G

On 15/03/2011 11:30, Giovanni Luca Ciampaglia wrote:
> Hi all,
> I call savefig by passing to it a file-like object but it appears to not
> get the graphics format right:
>
> f = open('not_a_pdf.pdf', 'w')
> plot([1,2,3])
> savefig(f)
>
> but it produces a PNG image. Can anybody confirm this? I am on
> matplotlib 0.99.3
>
> Cheers,


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] savefig not deducing file format

2011-03-25 Thread Giovanni Luca Ciampaglia
Hi all,
I call savefig by passing to it a file-like object but it appears to not 
get the graphics format right:

f = open('not_a_pdf.pdf', 'w')
plot([1,2,3])
savefig(f)

but it produces a PNG image. Can anybody confirm this? I am on 
matplotlib 0.99.3

Cheers,
-- 
Giovanni L. Ciampaglia
PhD Student
University of Lugano, MACS Lab

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] savefig not deducing file format

2011-03-15 Thread Giovanni Luca Ciampaglia
My fault, I didn't read the docstring properly. Thanks for both replies.

Best,

G

On 15/03/2011 13:51, Michael Droettboom wrote:
> It has no way of deducing the file format from the file object.
>
> You need to explicitly pass the format keyword to savefig, e.g.:
>
> savefig(f, format='pdf')
>
> Mike
>
> On 03/15/2011 07:11 AM, Giovanni Luca Ciampaglia wrote:
>> Hi all,
>> I call savefig by passing to it a file-like object but it appears to not
>> get the graphics format right:
>>
>> f = open('not_a_pdf.pdf', 'w')
>> plot([1,2,3])
>> savefig(f)
>>
>> but it produces a PNG image. Can anybody confirm this? I am on
>> matplotlib 0.99.3
>>
>> Cheers,
>>
>> Giovanni
>>
>> --
>> Colocation vs. Managed Hosting
>> A question and answer guide to determining the best fit
>> for your organization - today and in the future.
>> http://p.sf.net/sfu/internap-sfd2d
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>


--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] savefig not deducing file format

2011-03-15 Thread Giovanni Luca Ciampaglia
Hi all,
I call savefig by passing to it a file-like object but it appears to not 
get the graphics format right:

f = open('not_a_pdf.pdf', 'w')
plot([1,2,3])
savefig(f)

but it produces a PNG image. Can anybody confirm this? I am on 
matplotlib 0.99.3

Cheers,

Giovanni

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users