I want to make interactive graph like this using Qt and C++ : http://jsxgraph.uni-bayreuth.de/wiki/index.php/Cubic_spline_interpolation
Any leads on how to do that ?
EDIT :
Okay, I've already tried my hands on the QGraphicsView class and qwt library. However, I find no easy way to introduce interactive-ness. Is there an easy way to do that ?
Start with the QGraphicsview framework and the diagram example
Related
I am trying to load a PLY mesh file, with per vertex color data, using Qt3D. After some research it seems not so straightforward: QML load and display .ply mesh with color attributes
Another option I tried was to use VTK but it lacks support for Qt Quick.
I am trying to create a PLY file previewer. Is there any simple way to do this using Qt Quick?
I am trying to implement violin plots using Qt. I have checked the internet for resources about the matter but so far I have only found examples that have been implemented using R and Python. Does Qt -or maybe Qwt for that matter- possess the relevant tools to implement these, or should I switch my platform? Thanks.
Qt has a suite of various drawing tools, as violin plots are no different to any other diagram, you should easily be able to draw them yourself using QPainter.
Just to be clear, I'm talking about drawing violin plots, you will of course have to implement the math and data structures for them yourself.
I would like to know if R allows to pan and zoom images produced with the "plot" function. I would like to obtain the plot transformation using the mouse and not through the command line, is it possible?
Thanks in advance.
It's a bit old question but for future references, I've wrote a package doing precisely that (based on zoomplot {in pkg:TeachingDemos}). It's called zoom:
The CRAN page on zoom
And you are welcome to check the latest and greatest and expand the package on Github
Usage -
library(zoom) # Invoke the Library
# Call plot
zm()
The instructions for Usage in a normal plot is
Mouse:
Scroll to zoom in and out
Hold left mouse button to move
Keyboard:
Left/Right (h/l): move left/right
Up/Down (k/j) : move up/down
+ or i / - or o : zoom in/out
L/H : zoom in/out (x-axis only)
K/J : zoom in/out (y-axis only)
p : print to file
r : reset limits
s : show limits
q on the graphic window to quit
Not with the default plotting device as its internal model is 'static'.
There are workarounds, tough: look for example at package playwith, or at a Java-based device such as the iplots package on Simon's rforge. There are also extensions like ggobi and other on-going work (such as the Qt-based device which will in time replace ggobi) which try to make R-based graphing more dynamic.
But the main takeaway is: not, not really -- due to the way R graphics devices are designed.
To add to Dirk's answer: see also the iWebPlots and RnavGraph packages.
You should look at Greg Snows zoomplot {in pkg:TeachingDemos}. You may be able to call that function with cursor interface using the tk toolkit. I think Greg's package also has examples of such an interface.
To add to existing answers: I like to use the identify() function to manually add labels just to particular points I want.
You can also add R graphs to plot.ly . This should be enough for the most common stuff.
Stefan
Now there are also http://www.htmlwidgets.org/ that add a great set of interactive visualizations capabilities to R. Most of them can easily be zoomed and panned.
I'm trying to draw a directed graph with labels on edges. I'm using graph# (graphsharp) and quickgraph, and I saw an explanation in the forums about how to add labels (it is not supported by the library), but cannot manage to implement myself. If someone could provide a working example using these two libraries I would be very thankful.
Update:
I'm now looking for something a little more complicated: My edges behave like nodes, they have connections to other nodes and have a name-tag. So they are like any other node, and when I draw the graph these edge-nodes must appear exactly in the middle of a certain connections. Any ideas?
Although it's not documented, QuickGraph supports output to other formats, like DGML. VS 2010 includes a very basic DGML viewer. It may be possible to output DGML so that the resulting graph has edge labels. However you will likely need to add support yourself.
Download the QuickGraph sources and play around with it. I'm a committer on the project, so if you figure it out let me know and we'll get your changes into the project.
I need to plot points of a line graph dynamically..(same like an oscilloscope in ecg).. can someone please suggest some tool that contains such a feature!!..
I've used Matplotlib with python.You might also use an script for octave.
What language are you using?
This would be pretty easy with the paths in WPF. Of course, just about any language will let you draw a line on the screen pretty quickly.
What is the input data? Is it from a file, a piece of hardware, something else?