Are there any charting or graphing modules for python that can write
PNG, JPEG, or GIF graphics? I have found a couple of nice looking
packages that can make beautiful postscript, PDF, or SVGs (PyChart and
ReportLab) but they can't make PNGs, GIFs, or JPEGs. (On my Solaris
machine with Python 2.2 they don't.) Or are there any simple UNIX
filters to convert SVG, PDF, or ps files to PNG? 2 2329
In article <98************ **************@ posting.google. com>, john
<jo************ **@mac.com> writes Are there any charting or graphing modules for python that can write PNG, JPEG, or GIF graphics? I have found a couple of nice looking packages that can make beautiful postscript, PDF, or SVGs (PyChart and ReportLab) but they can't make PNGs, GIFs, or JPEGs. (On my Solaris machine with Python 2.2 they don't.) Or are there any simple UNIX filters to convert SVG, PDF, or ps files to PNG?
ReportLab certainly makes png/gif/jpeg, but only if you build the
_renderPM extension and also PIL. I know that's possible with solaris 8
as I have done it myself, but haven't done much with later versions.
There's also a requirement to get appropriate T1 font files.
--
Robin Becker jo************* *@mac.com (john) writes: Are there any charting or graphing modules for python that can write PNG, JPEG, or GIF graphics? I have found a couple of nice looking packages that can make beautiful postscript, PDF, or SVGs (PyChart and ReportLab) but they can't make PNGs, GIFs, or JPEGs. (On my Solaris machine with Python 2.2 they don't.) Or are there any simple UNIX filters to convert SVG, PDF, or ps files to PNG?
The 'convert' utility from ImageMagick (google for it) is very good at
converting PDF or PS to PNG. It uses ghostscript to do the actual
conversion; it's just very good at choosing the right options to pass
to ghostscript.
convert -geometry 800x600 -density 200 foo.ps foo.png
Will convert a postscript to a png, keeping the aspect ratio correct
but making it fit inside an 800 by 600 pixel area. The -density
argument tells it the dpi to use when rendering the image. Higher
values are slower but give better results.
--
Tim Evans This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: gwerk |
last post by:
Hi, I've installed php4.0.4 on a linux machine running apache 1.3.19 but the
php is not working properly. When I try to open a php doc all i get is the
actual code - not the output eg. <? echo "This isn't working" ?>
These line have been added to my httpd.conf file:
AddModule mod_php.c
AddModule mod_php3.c
AddModule mod_perl.c
LoadModule php_module modules/mod_php.so
|
by: Michael T. Peterson |
last post by:
Would anyone care to recommend a good graphing package (commercial or
otherwise)? I've looked at some of the PEAR Image packages - The only
graphing package is still alpha quality. One particularly interesting
feature would be to display data as in a 'strip chart' recorder, i.e., the
graph scrolls across the web page.
Any suggestions/pointers would be much appreciated.
Michael
|
by: Mudcat |
last post by:
Hi,
I have looked through the previous suggestions on graphing modules and
have been able to find some good suggestions. However I was wondering
about something more specific. I am going to write a program that
tracks stock prices and other financial related charts, so I need to
use the classic stock chart. From the ones I've seen, the graphing
modules deal mostly with scientific plotting and do not have the
"high/low" type charts.
|
by: robby.walker |
last post by:
Hi,
I've just released a full-featured online graphing calculator at
http://www.e-tutor.com/et2/graphing/
It requires no downloads or plugins - just JavaScript. You can track
points on the curve, graph multiple functions, and more. A lot of this
functionality is implemented in JavaScript. I'm very interested in
hearing people's feature requests.
|
by: Dexter |
last post by:
GraphEasyRect was previously available as an applet. Now we have
converted it to a desktop standalone application that runs on
multiple
platforms Windows, Mac, and Linux
This tool allows graphing functions in cartesian plane, points of
discontinuity having limits are encircled on graph line. You may view
and copy the values of the function between a range of x values
| |
by: shlaga |
last post by:
Hi,
I have query in access that i output in excel and want to graph the output. I have written the code for this in access -> visual basic
i want the code to get the range of the xvalues and the yvalues from the output query in excel sheet and graph column B vs Column A...
For the graphing part of the code this is what i have:
|
by: sydneytroz |
last post by:
I am writing a program to simulate a double displacement reaction getting to equilibrium, but I am having some trouble graphing the particles' concentrations. It seems that it's only possible to pan and zoom the graph once the program exits (when running it from IDLE), but I don't want to have to kill the sim every time I want to view the graph (besides, when I do, the graph window dissappears).
The following code contains all the graphing...
|
by: E. J. Gold is the Hi-Tech Shaman |
last post by:
(crossposted to sci.math)
I'm looking for a tool which will take a dataset of tuples indicating
the year of birth and death of a person:
(1872, 1950, "Sri Aurobindo")
(1821, 1910, "Mary Baker Eddy")
(1831, 1891, "HP. Blavatksy")
And graph them out, in bars, annotating them with the person's name.
|
by: josequinonesii |
last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet...
Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not work. Please review my work and let me know if you see that one little thing that is throwing me for a loop.
HTTPD.CONF
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |