Creating contour plots

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dodginess
Posts: 2
Joined: 2014-11-15T07:56:43-07:00
Authentication code: 6789

Creating contour plots

Post by dodginess »

Does anyone know if there are any PHP/Perl scripts that use ImageMagick or any general ImageMagick techniques that can be used to generate contour plots? The type of image I'm referring to looks like the following images:

Image

Image

Ideally the transition between the different height areas would be a gradient containing the two adjacent colors, so that it looks similar in style to the second image.

This functionality seems easy enough to find in standalone applications but I need a purely web-based solution - most of the existing solutions seem to consist of taking PS output from a standalone application and converting it with an image library, which won't work for my application.

Thanks in advance for any help or advice!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Creating contour plots

Post by fmw42 »

Try GNUPLOT. See http://www.gnuplot.info/
dodginess
Posts: 2
Joined: 2014-11-15T07:56:43-07:00
Authentication code: 6789

Re: Creating contour plots

Post by dodginess »

Thank you - I haven't used this before but I'll look into it.
Post Reply