473,385 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Scipy - Latex Annotations in plots

Hello,

I'm quite new to python and Scipy.
Anyway I want to use it to plot graphs.
Does anybody know if there is the possibility to use Latex in SciPy's
plotting functions like gplt?

Thanks for your help,

Matthias
Jul 21 '05 #1
8 3370
fortuneteller wrote:
Hello,

I'm quite new to python and Scipy.
Anyway I want to use it to plot graphs.
Does anybody know if there is the possibility to use Latex in SciPy's
plotting functions like gplt?


I don't believe so. matplotlib, however, does have this functionality in
recent releases.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Jul 21 '05 #2
Unfortunately matplotlib is only a 2D-plotting library.

Do you know another one with 3D-capabilities as well?
That would be very nice,

thank you,

Matthias

Robert Kern wrote:
fortuneteller wrote:
Hello,

I'm quite new to python and Scipy.
Anyway I want to use it to plot graphs.
Does anybody know if there is the possibility to use Latex in SciPy's
plotting functions like gplt?


I don't believe so. matplotlib, however, does have this functionality in
recent releases.


Jul 21 '05 #3
> Robert Kern wrote:
fortuneteller wrote:
Hello,

I'm quite new to python and Scipy.
Anyway I want to use it to plot graphs.
Does anybody know if there is the possibility to use Latex in SciPy's
plotting functions like gplt?
I don't believe so. matplotlib, however, does have this functionality in
recent releases.


On 7/6/05, Matthias R. <ne******@gmx.de> wrote: Unfortunately matplotlib is only a 2D-plotting library.

Do you know another one with 3D-capabilities as well?
That would be very nice,


Perhaps gnuplot.py (http://gnuplot-py.sourceforge.net/) will work for
you? It is a thin wrapper around Gnuplot, which is very good at
producing ps format images, and is capable of producing 3 dimensional
graphs.

Peace
Bill Mill
bill.mill at gmail.com

PS please try to not top-post, you can lose the rest of the thread easily
Jul 21 '05 #4
Matthias R. wrote:
Unfortunately matplotlib is only a 2D-plotting library.

Do you know another one with 3D-capabilities as well?
There's PyX.
That would be very nice,


Yes, yes it would.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Jul 21 '05 #5

Robert Kern wrote:
Matthias R. wrote:
Unfortunately matplotlib is only a 2D-plotting library.

Do you know another one with 3D-capabilities as well?


There's PyX.


Sorry, PyX can't do 3D plots.

-----------

I like PyX, use it a lot and would suggest it as a beter plotting
library than the ones at Scipy (for as long as you don't need on-screen
plotting).

I just saw matplotlib this week while searching for something that
would do 3D, it seemed pretty nice and it does have many more features
than PyX, is certainly more mature than PyX and more high level.

On the other hand PyX: LaTeX support seems to be way ahead and it can
be used to draw (very funky) figures.

My experience with PyX is that:

1. it takes more lines of code (than what I fell is needed) to do it;
2. it (still) lacks easy ways to do frequent things (like filling)
3. but once you got it done; the figures/plots are *PERFECT*.

Over PyX you must also be aware that:

a) PyX can't (yet) do pie-charts.

b) No, Pyx can't plot 3D (yes, despite using a 3D plot at their
webpage, it does *not* plot 3D).

c) Documentation can be very confusing at times, so start at the
examples;

d) PyX is not stable yet, the last 3 (or 2?) PyX releases were all
backwards incompatible.

Cheers,
Francisco

Jul 21 '05 #6


Francisco Borges wrote:
1. it takes more lines of code (than what I fell is needed) to do it;
2. it (still) lacks easy ways to do frequent things (like filling)


Sorry, I just realised the piece of nonsense I just wrote...

PyX does fill objects very easily, what it does take lot's of work to
do is to fill the intersection of two objects, or the intersection of a
plot line and some chosen axis. Or is it just that I myself haven't
learned how to do that properly....

Cheers,
Francisco

Jul 21 '05 #7
"Matthias R." <ne******@gmx.de> writes:
Unfortunately matplotlib is only a 2D-plotting library.

Do you know another one with 3D-capabilities as well?
That would be very nice,


You can quite easily write a function that produces metapost
code. Featpost is the best 3d-lib for that, afaik.

The good thing is that you get plot that work in both latex and
pdflatex and integrates completely with latex text.

--
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
Jul 21 '05 #8
Francisco Borges wrote:
I like PyX, use it a lot and would suggest it as a beter plotting
library than the ones at Scipy (for as long as you don't need on-screen
plotting).
FWIW, the plotting support in scipy is essentially unmaintained and abandoned,
since the advent of matplotlib. It hasn't been officially deprecated, though
I'm wondering if perhaps we should do that just to save users the aggravation.
I just saw matplotlib this week while searching for something that
would do 3D, it seemed pretty nice and it does have many more features
than PyX, is certainly more mature than PyX and more high level.
I use both extensively, so I can comment a bit: matplotlib is a fantastic
_plotting_ library, and it has very extensive support for doing all kinds of
plotting-related things easily and with high output quality. As of v. 0.82,
its latex support is on-par with Pyx's, since now you can set it to do _all_
your text rendering (including ticks, numbers, etc.) via latex. It gets a bit
slower (much like pyx), but the quality is perfect (it's true latex running
underneath).

Besides, matplotlib provides widgets for on-screen rendering and embedding into
GUI applications, something which can be very important, and outside pyx's
domain of interest.

Where pyx shines is for generating what I call 'diagrams' for lack of a better
term: drawings that don't fall well into the model of 'plot these data points
at these coordinates' but that rather involve algorithmically-driven
positioning of geometric elements. This power is best seen (despite my poor
description) by just looking at the pyx examples page, which shows how even
relatively complex diagrams can be done in pyx with very little code, and give
stunning results.

While you can plot with pyx, and draw with matplotlib, I feel that they each
have their strengths, and I use both. I love both, and I feel they complement
each other extremely well.

For 3d plotting in python, VTK and mayavi are my workhorses, and I'm quite
happy with that solution so far.
On the other hand PyX: LaTeX support seems to be way ahead and it can
be used to draw (very funky) figures.


[have a look at recent matplotlib for proper latex]

Cheers,

f

Jul 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mathias | last post by:
Hi all, I'd like to display a number of pictures with xplt.imagesc() in the same window using xplt.subplot() Now I expected 3 or 4 parameters in subplot(): -total # of plots in X dir. -total #...
1
by: Tom | last post by:
I need a very, very minimal LaTeX system on Windows. I only need to have the possibility to get DVI files out of my tex files (with minimal fonts). An I need it without any installer (no settings...
1
by: tkpmep | last post by:
I installed SciPy and NumPy (0.9.5, because 0.9.6 does not work with the current version of SciPy), and had some teething troubles. I looked around for help and observed that the tutorial is dated...
0
by: Julien Fiore | last post by:
Hi, I have problems trying to install the scipy.weave package. I run Python 2.4 on windows XP and my C compiler is MinGW. Below is the output of scipy.weave.test(). I read that the tests should...
2
by: robert | last post by:
I'm using latest numpy & scipy. What is this problem ? : RuntimeError: module compiled against version 1000002 of C-API but this version of numpy is 1000009 Traceback (most recent call last):...
0
by: giovanni gherdovich | last post by:
Hello, first of all: Is this the right place to ask plastek-related questions? I'm trying to make plastex work on my Ubuntu Dapper Drake. For LaTeX, I have the all-in-one package tetex.
4
by: Tony Lownds | last post by:
(Note: PEPs in the 3xxx number range are intended for Python 3000) PEP: 3107 Title: Function Annotations Version: $Revision: 53169 $ Last-Modified: $Date: 2006-12-27 20:59:16 -0800 (Wed, 27 Dec...
1
by: adina | last post by:
Hello there, I need some help with LaTex and processing images in LaTex. I realise that this is a C/C++ forum, but I was thinking that perhaps there are a some people who are interested in LaTex,...
6
by: redcic | last post by:
Hi all, I've just downloaded scipy v 0.5.2 and I would like to be able to draw plots. I've tried: import scipy.gplt import scipy.plt import scipy.xplt and none of them work. Are these...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.