plot

3D Graph plotting for C++

Hi, I need to plot my simulation (which I do in a C++ application) for use in a Latex document (so I would prefer some vector output like EPS). My function is of 2 arguments, so I am after a 3D plot, ideally with colouring indicating the function value (similar to what Mathematica does). Could anyone recommend any library? ...

Text and Plots in Matlab to LaTeX

I like to create a "report generation" script in Matlab. Suppose we have a Matlab array, data and we want to export the following to a .tex file: "The information in the first element of data is X." This would be followed by a plot of X. I have already tried help latex in Matlab and aware of the various packages on Matlab file exchang...

any chart / graph / plotting c c++ library which is similar as bloomberg chart, with mouse interaction on plotted line, and multilayer plot

any chart / graph / plotting c c++ library which is similar as bloomberg chart, with mouse interaction on plotted line, and multilayer plot? gnuplot is very powerful but it seems to me it can feed in data but no callback to mouse action and no manipulation on plotted line / chart, e.g. over mouse over particular line and I would dump th...

How to make mosaic plot with pictures as bars with R?

Hi, I'd like to plot mosaic bar or spinogram like here: http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=117, but I'd like to have vertically streched 3-letter string legend inside of each bar. Any ideas how to implement this easily? ...

how to plot 3d graph (network) matlab?

I want to plot a 3d graph in matlab By graph I mean in the sense of nodes and edges. I have an adjacency matrix as well as a coordinate matrix for every node. Eventually I would hope to colour these nodes and edges The gplot function is only 2d. The scatter3 function does not allow for edges. Any ideas? ...

Save a plot in Matlab as a matrix

Hi! Just imagine you plot several dots, circles, lines in a figure. Afterwards another m file should use this plot as an input to do e.g. thresholding. I'm aware of the print command but I don't want the plot to be stored as file. I would prefer to store it in a matrix (x_dim,y_dim,3). Any ideas? ...

IDL: Can I get the coordinates of a point on my plot's cartesian plane?

I have a plot like this: http://i.imgur.com/i9xp5.png I need the data coordinates of points in order to plot wind barbs. Now, if I wanted a wind barb to be drawn at x=100, y=20, is there a way I can obtain the data coordinates of that ( or other ) points of my plot? ...

Plotting GPS info with Ruby

I'm looking for ways to programmatically convert my GPS logs to images and would like to do this in Ruby... if that's an acceptable tool. I have no GIS background whatsoever but as a programmer i think it's an interesting problem to look at. Here is what I have come up with so far. First you'll need some kind of graphing library. I went...

constructing graphs in Java

hello everyone, i need to plot velocity graph for my velocity vector data(x axis velocity x comp, y axis velocity y comp). there is a quiver plot in matlab which does so, is it possible to some how draw such graphs in Java. please some one can tell how to do it, it would be real help. ...

How to plot a set of densities in 3D using R?

Hi! I need to plot, in 3D, a set of densities associated to a time series. More precisely, I would like to be able in R to build an image close to this example This image is taken from [1]. The transparency plays an important role as let us see the trajectory of the "measures" in the x-y plane. Any help will be greatly appreciated...

python matplotlib will only plot integers

Hi, I'm very new to python. two days. trying to get a plot working with matplotlib. I'm getting this error: cannot perform reduce with flexible type the line with the error is: ax.scatter(x,y,z,marker='o') Variables: ax is defined as: ax = Axes3D(fig) fig is defined as: fig = plt.figure() x, y, z are lists Any python expert...

Overlay multiple stat_function calls in ggplot2

I have two data.frames, one containing raw data and the other containing modelling coefficients that I have derived from the raw data. More detail: The first data.frame "raw" contains "Time" (0s to 900s) and "OD" for many Variants and four runs. The second data.frame "coef" contains one row per Variant/run combination, with the individ...

Is there a way to remove a single plot from existing axes?

Is there an easy way to remove a plotted line from a set of axes without clearing everything else on the axes? I'm trying to implement a GUI with a listbox containing several data sets. I can make the callback function plot the selected data, but I'm not sure how to 'unplot' it when I deselect a data set. Any ideas? ...

phylogenetic tree in R using ape

I am currently trying to use the package "ape" in R for drawing phylogenetic trees (like dendograms). What I would like to know is whether it is possible to add (directed) arcs between the leafs of the dendogram, in addition to the dendogram itself, and have some number above them. It is like having a directed (maybe complete) graph ove...

Efficient plotting library for web applications

Hi guys, I am looking for a plotting library that can be used in web applications (point and line plots are must - antyhing else is a bonus). It might be either server-side (Python) or client-side. The more interactive graphs are the better. I have found some solutions of course, but none of them are good enough for volume of datasets...

How do I draw 2D Map with plot() in MATLAB

I am trying to create a 2D map of some place. I get a 181x1 vector of laser sensor readings from a robot. All the values in this vector corresponds to a distance from that single angle like 1°,2°..180°. The problem here is I need to create a map by plotting these distances as dots with plot() or a similar function to it. ...

Controlling number formatting at axis of R plots

I have some 100k values. When I plot them as a line in R (using plot(type="l") the numbers next to the x-axis ticks are printed in scientific format (e.g. 0e+00,2e+04,...,1e+05). Instead, I would like them to be: A) 0,20kb,...,100kb B) the same but now the first coordinate should be 1 (i.e. starting to count from 1 instead of 0). BTW ...

Set R plots x axis to show at y=0

Usually when I plot some R line plot and set ylim=c(0,some_value), there is small space between the x axis and y=0. I would like the y axis to show exactly at y=0 so points (x,0) will be plotted on the y axis (and not above). ...

Adding an arrow below the x axis in R plots

I am trying to add arrows marking specific x coordinates below the x axis in an R plot. My x axis is at y=0 and when I try to use negative y-coordinates in arrows, so the arrows will be perpendicular to x axis, I get only the very edges of the arrow plotted (although is some space, e,g where the x-axis label and tickmarks are plotted). ...

Why is IDL adding it's own tick marks to my custom plot tick marks?

I'm trying to specify custom Y axis tick marks, but IDL is not cooperating. http://i.imgur.com/BFqMO.png In the top left, 1.0000 should be the max value, but IDL puts a 57 there. 57 is the max array dimension of my data. I have an array of eta levels(strings) corresponding 1:1 with the array indices, and I want to use them as tick m...