473,399 Members | 2,858 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,399 software developers and data experts.

How to plot functions in C++?

How can I plot functions in C++? Is there a library that can produce
jpeg/pdf output? Or something similar?
Thanks in advance!
Aug 9 '08 #1
3 6143
On Aug 9, 10:18*am, khalderon <zdravko.mo...@gmail.comwrote:
How can I plot functions in C++? Is there a library that can produce
jpeg/pdf output? Or something similar?
Thanks in advance!
I have found ImageMagick quite good.

http://www.imagemagick.org/script/index.php

You get basic vector graphics output, and its quite easy then to write
your own routines to plot your functions.

regards
Andy Little
Aug 9 '08 #2
kwikius wrote:
On Aug 9, 10:18 am, khalderon <zdravko.mo...@gmail.comwrote:
>How can I plot functions in C++? Is there a library that can produce
jpeg/pdf output? Or something similar?
Thanks in advance!

I have found ImageMagick quite good.

http://www.imagemagick.org/script/index.php

You get basic vector graphics output, and its quite easy then to write
your own routines to plot your functions.

regards
Andy Little
I suggest you could use "dislin"
http://www.mps.mpg.de/dislin/
There are many examples of c code, see in
http://www.mps.mpg.de/dislin/examples.html
Aug 11 '08 #3
On Aug 9, 5:18*am, khalderon <zdravko.mo...@gmail.comwrote:
How can I plot functions in C++? Is there a library that can produce
jpeg/pdf output? Or something similar?
See this FAQ on lots of libraries:

http://www.parashift.com/c++-faq-lit....html#faq-37.9

Cheers! --M
Aug 11 '08 #4

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

Similar topics

2
by: Dr. Colombes | last post by:
MatPlotLib question: How to get more different size plot symbols in the plot function ? Is there a way to get different size squares (or circles or triangles, etc.) ? For example, in a two...
1
by: Dr. Colombes | last post by:
Using MatPlotLib plot function, is there a way to get variable size plot symbols? For example, using symbol strings like 'o' (circle), 's' (square), 'x' (cross), etc., is there a way to specify...
1
by: Siddharth Jain | last post by:
Hello I am using Visual Studio 2005 beta and Mathematica 5.0. I was trying to make an application (in c#) which would allow me to use Mathematica functions like Plot, ListPlot etc and show the...
0
by: toton | last post by:
Hi, for my project I needs a few plots to visualize the data (mostly x-y plot) . Most of the existing plotting library either copy the data and do plotting, or takes a data pointer to an 2d x-y...
0
by: cdeelert | last post by:
Hi friends, I'm using vc++ 2005. I'd like to be able to plot my data in real time and show it on screen. Is there any library I can use? Can I use Matlab functions to do this job? If so, how? So,...
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...
1
by: dazzler | last post by:
Hi! I just moved using wxpython so I'm a quite newbie. I was wondering how to update plotcanvas? In my code I made button with event to update plotcanvas with new results, but how to properly do...
2
by: itdevries | last post by:
Hi, I've been looking for a basic c++ 2D plot library to use with windows (and visual studio). I was a bit overwhelmed by all the options I found. Can someone here recommend a basic 2D plot...
6
by: mlt | last post by:
Anyone has an idea to generate points for a solid sphere in C++ that can be plotted with gnuplot? I have tried to plot simple functions based on output from a function written in C++ which worked...
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...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.