PDA

View Full Version : Basic 2D Graphs with QGraphicsView



Astronomy
3rd August 2009, 20:55
Hello

I've installed Qt Creator 1.2.0, based on Qt 4.5.2 (32 bit)
For my diploma thesis i need to view some spectroscopic graphs.

Custom Panel Graph with Line + Symbol Plots of Spectroscopic Data
http://www.originlab.com/www/products/GraphGallery.aspx?GID=28&s=8&lm=215

My question is:
Does QGraphicsView provide some sort of gnuplot-like graphs?
http://gnuplot.sourceforge.net/demo_4.2/

http://gnuplot.sourceforge.net/demo_4.2/simple.html

Or Basic Sinus,- plotting functions, scaling Axis, zooming-, scrolling-Axis, setting Labels and tics and so on?

Or do i have to buiild my own derived QT class, based on QGraphicsView and do it all by myself? (Scaling, Labels, size-resize, and so on..)


thanx,
Astronomy

__________________________________________________ ___________________
some other graphs..
http://www.originlab.com/www/products/GraphGallery.aspx?GID=57&s=8&lm=215


(sophisticated) graphs:
http://www.originlab.com/www/products/graphgallery.aspx?s=8&lm=215

Uwe
3rd August 2009, 21:23
Qwt (http://qwt.sf.net) offers the type of widgets you asked for. If you are looking for an application like origin check QtiPlot (http://soft.proindependent.com/qtiplot.htm) ( what is using the Qwt widget library ).

Uwe

Astronomy
3rd August 2009, 21:51
Thanx 4 the hint!


QtiPlot:
http://soft.proindependent.com/pricing.html
Hmm.. they claim to put it under GNU license but want to have a fee?

Well i think i take a look into QWT

greetz A.

Uwe
3rd August 2009, 22:07
QtiPlot:
http://soft.proindependent.com/pricing.html
Hmm.. they claim to put it under GNU license but want to have a fee.
AFAIR the fee is for support and packaging only. On Linux systems this is of no relevance because you have packages from your distributor - on Mac and Windows it means you have to build QtiPlot yourself.

Uwe