Все вопросы: [plot]

97 вопросов

10
голосов
8ответов
9619 просмотров

How can I plot a time series graph with Perl?

I have some data from a database (SQLite), mapping a value (an integer) to a date. A date is a string with this format: YYYY-MM-DD hh:mm. The dates are not uniformly distributed. I want do draw a line graph with the dates on X and the values on Y. What is the easiest way to do this with Perl? I ...

3
голосов
3ответов
40539 просмотров

How do I plot confidence intervals in MATLAB?

I want to plot some confidence interval graphs in MATLAB but I don't have any idea at all how to do it. I have the data in a .xls file. Can someone give me a hint, or does anyone know commands for plotting CIs?

7
голосов
6ответов
10598 просмотров

Graphs from MYSQL to jquery FLOT

I've discovered flot for jquery for drawing nice graphs. But I can't parse the data I want to represent from MYSQL. It's driving me crazy because I get this error: uncaught exception: Invalid dimensions for plot, width = 0, height = 0 Is there any way to put MYSQL data into flot apart from thi...

2
голосов
1ответов
7920 просмотров

How do I color part of a graph under a line in MATLAB?

I would like to have in the same figure a line plot and a part of the graph under the line colored (a confidence interval). How can I do this in MATLAB? I already tried the following, but it doesn't work (it only shows the area): plot(theta, p_prior_cum) area(theta(50:70), p_prior_cum(50:70)) ...

167
голосов
4ответов
360242 просмотров

Plotting time in Python with Matplotlib

I have an array of timestamps in the format (HH:MM:SS.mmmmmm) and another array of floating point numbers, each corresponding to a value in the timestamp array. Can I plot time on the x axis and the numbers on the y-axis using Matplotlib? I was trying to, but somehow it was only accepting array...

5
голосов
2ответов
2530 просмотров

Alternatives to using text() to adding text to a plot

This may be a naive question, but I was wondering if there's a better way than using text() to adding text to a plot. Note, I'm also using layout() as well. Specifically, I have a section of a plot where I would like to add some text with headings followed by regular text. text() is fine it s...

11
голосов
4ответов
10545 просмотров

Plot GeoIP data on a World Map

I need a library (preferably written in Python) which is able to take a series of IP addresses (or geographic coordinates) and plots them on a World Map. I already found this one, but it outputs data as a .svg file and it's simply unable to cope with large data sets. Please note that I need s...

6
голосов
6ответов
6121 просмотров

Ruby: building a plot of function

What's the easiest way to build a plot of a function under Ruby? Any suggestions as to the special graphical library? update: under windows only :-( update 2: found the following gem as a best solution so far https://github.com/clbustos/rubyvis

2
голосов
1ответов
3909 просмотров

How to set fixed axis intervals with Qt/QwtPlot?

I want to have a plotting widget in my Qt application. Qwt provides such a widget with QwtPlot. However, I can't find any way to only display a certain part of the complete range of my data. Specifically, I want to display spectrums with a frequency range from 0 to 2^14. For the GUI however, onl...

9
голосов
3ответов
83999 просмотров

How to mark a point in a MATLAB plot?

I have this plot [Full Resolution] I need to make a straight vertical line at a point on x axis that the user enters and show the coordinates of the intersection of that vertical line with my plot. How can this be done in MATLAB? for example: the user enters 1020 then a straight vertical li...

20
голосов
5ответов
81060 просмотров

How to smoothen a plot in MATLAB?

I have some 9000 points that are plotted on a graph: [Full resolution] Actually, the plot is not as smooth as I wanted it to be. Is there some way I can smoothen the graph to a required degree? Or some form of thresholding so that I can selectively smoothen out the parts that is too bumpy? ...

0
голосов
4ответов
6336 просмотров

Connect points and compute area

thats my first post, so please be kind. I have a matrix with 3~10 coordinates and I want to connect these points to become a polygone with maximum size. I tried fill() [1] to generate a plot but how do I calculate the area of this plot? Is there a way of converting the plot back to an matrix? ...

23
голосов
7ответов
49099 просмотров

Making plot in Qt

I need to implement some plot like that or that in my app , it can be even something similar. I made a search on Qt web site with no progress , and I saw Qwt package but nothing similar there. Any ideas?

3
голосов
1ответов
274 просмотров

Mixed Scaled and ordinary coordinates in Mathematica?

Is it possible to specify a position in terms of Scaled coordinates in one direction and use the ordinary coordinates from my data points in the other direction on the plot? In other words, I want to specify a position, where the x coordinate is an ordinary coordinate and will change position in...

3
голосов
2ответов
1919 просмотров

R: update plot [xy]lims with new points() or lines() additions?

Background: I'm running a Monte Carlo simulation to show that a particular process (a cumulative mean) does not converge over time, and often diverges wildly in simulation (the expectation of the random variable = infinity). I want to plot about 10 of these simulations on a line chart, where t...

6
голосов
2ответов
9206 просмотров

Crossing axis and labels in matlab

I just can't find it. How to set up axis and labels in matlab so they cross at zero point, with the labels just below the axis not on left/bottom of the plot ? If I didn't make myself clear - I just want the plot to look like like we all used to draw it when in school. Axes crossing, 4 quadrants...

13
голосов
7ответов
53915 просмотров

Display Values in R Plot

How can I render the value of points in a plot in the plot itself? Thank you.

5
голосов
2ответов
697 просмотров

Best OCR for extracting text from a plot?

(source: goldprice.org) Does anyone know of a good ocr that is able to convert this image into text? I tried tesseract but it didn't work out the way I expected.

14
голосов
5ответов
20593 просмотров

Boxplot schmoxplot: How to plot means and standard errors conditioned by a factor in R?

We all love robust measures like medians and interquartile ranges, but lets face it, in many fields, boxplots almost never show up in published articles, while means and standard errors do so all the time. It's simple in lattice, ggplot2, etc to draw boxplots and the galleries are full of them. ...

6
голосов
2ответов
2456 просмотров

More bullseye plotting in R

I'm using ggplot2 to make some bullseye charts in R. They look delightful, and everyone is very pleased - except that they'd like to have the values of the bullseye layers plotted on the chart. I'd be happy just to put them in the lower-right corner of the plot, or even in the plot margins, but...

2
голосов
3ответов
1054 просмотров

Bull's-eye charts

A colleague of mine needs to plot 101 bull's-eye charts. This is not her idea. Rather than have her slave away in Excel or God knows what making these things, I offered to do them in R; mapping a bar plot to polar coordinates to make a bull's-eye is a breeze in ggplot2. I'm running into a prob...

0
голосов
2ответов
300 просмотров

Real time data exchange between R and Windows application

I am using R for scatter plots, and now also for 3D cloud plots on top of an image. I have an application that generates a lot of such 3D coordinates and I need to see those coordinates on top of the image at run-time (for debugging purposes). Is it possible for my Windows application to communi...

2
голосов
2ответов
1564 просмотров

Changing annotations in time series plots in R

While I can change annotations with the generic plot command turning off axes and annotations and specifying them again using the axis command e.g. cars <- c(1, 3, 6, 4, 9) plot(cars, type="o", col="blue", ylim=range(0, cars), axes=FALSE, ann=FALSE) axis(1, at=1:5, lab=c("Mon","Tue","Wed"...

12
голосов
2ответов
4787 просмотров

plotting points on top of image in R

These days I am extensively using R to scatter plots. Most of the plotting is concerned with image processing, Recently I was thinking of plotting the scatter plots over an image. For example, I want something like this, The background needs to be filled with my image. With a particular scale. ...

19
голосов
1ответов
69180 просмотров

How do I set what plot() labels the x-axis with?

I have a plot() that I'm trying to make, but I do not want the x-values to be used as the axis labels...I want a different character vector that I want to use as labels, in the standard way: Use as many as will fit, drop the others, etc. What should I pass to plot() to make this happen? For exam...

51
голосов
3ответов
84895 просмотров

How to print R graphics to multiple pages of a PDF and multiple PDFs?

I know that pdf("myOut.pdf") will print to a PDF in R. What if I want to Make a loop that prints subsequent graphs on new pages of a PDF file (appending to the end)? Make a loop that prints subsequent graphs to new PDF files (one graph per file)?

119
голосов
9ответов
88688 просмотров

Getting LaTeX into R Plots

I would like to add LaTeX typesetting to elements of plots in R (e.g: the title, axis labels, annotations, etc.) using either the combination of base/lattice or with ggplot2. Questions: Is there a way to get LaTeX into plots using these packages, and if so, how is it done? If not, are there ...

9
голосов
1ответов
2624 просмотров

How can I remove plot margins between the axes of the plot and the plot contents in R?

I want to remove the space between the axes of the plot and the plot contents themselves. Any ideas?

1
голосов
2ответов
1660 просмотров

How to present wave form in Java

I've got this small code that performs recording in java. I whish to add some sort of functionality to draw a visual presentation of this. How would you advise me to approach this? (I am very new to java ) I'd like the visual presentation to appear as a foreground of a current existing image.

6
голосов
4ответов
20006 просмотров

How to Superimpose Multiple Density Curves Into One Plot in R

I have a data that looks like this. And I intend to create multiple density curve into one plot, where each curve correspond to the unique ID. I tried to use "sm" package, with this code, but without success. library(sm) dat <- read.table("mydat.txt"); plotfn <- ("~/Desktop/flowgram_supe...