plot

Is it possible to add colorbar properties to a maltlab plot?

Hello, I'd really like to know if there's a way to add the colorbar properties we usually find in surface or mesh, but this time for a simple plot. Thanx you! ...

Plotting data and doing a least squares regression with cosines in java

I have data I would like to plot, and more importantly, do a least squares regression on using cosines (instead of using polynomials): http://imgur.com/AkEaE.png Any recommendations? Thanks. ...

IDL: Can IDL add a colorbar/other legend info below a contour plot, so that it doesn't overlap anything?

I am using a map_set call to draw a map, and then using contour to plot some data on top of it. I want to add a legend to this plot to make it useful, but it would have to be below the entire plot, and everything I've tried creates an overlapping legend over top of my image. ...

Basic Matlab question

I know this is really basic, but I am new to matlab. After opening a .fig file, how do you actually work with the data in the command line? All I see is the picture. Im not sure how to actually get the data. ...

A Plot Graph .NET WindowsForm Component Free

Hello All, I'm searching for a plot .NET component to plot a 2D line chart, given an array of data. It will be used with WindowsForm (C#) and It will be very helpful if it could be freeware. It is for a scientific application. This is my first asked question in stackoverflow, and excuse me for my terrible English written. ...

gnuplot cuts off label of rightmost tickmark in plot

When I plot something in gnuplot, the resulting plot has numbers labeling the tickmarks on the x-axis. The label of the final (rightmost) tickmark is always cut off (the labels are are, like 6 or seven digits). Is there a way in gnuplot to make the graph window wider? For the record, I do not want to make the actual plot wider just th...

using R.zoo to plot multiple series with error bars

I have data that looks like this: > head(data) groupname ob_time dist.mean dist.sd dur.mean dur.sd ct.mean ct.sd 1 rowA 0.3 61.67500 39.76515 43.67500 26.35027 8.666667 11.29226 2 rowA 60.0 45.49167 38.30301 37.58333 27.98207 8.750000 12.46176 3 rowA 120.0 50.22500 ...

Interpolation of time series data in R

I'm not sure what i'm missing here, but i'm basically trying to compute interpolated values for a time series; when I directly plot the series, constraining the interpolation points with "interpolation.date.vector", the plot is correct: plot(date.vector,fact.vector,ylab='Quantity') lines(spline(date.vector,fact.vector,xout=interpolation...

Generating a perfectly distributed grid from array

I'm looking for a formula or rule that will allow me to distribute n characters into a n*n grid with as perfect of a distribution as possible. Let's say we have an array of 5 characters, A through E. Here's an example of how it definitely shouldn't turn out: A B C D E B C D E A C D E A B D E A B C E A B C D With this pattern, the lett...

R: building a simple command line plotting tool/Capturing window close events

I am trying to use R within a script that will act as a simple command line plot tool. I.e. user pipes in a csv file and they get a plot. I can get to R fine and get the plot to display through various temp file machinations, but I have hit a roadblock. I cannot figure out how to get R to keep running until the users closes the window....

Real time plot in matlab

Hi, I'm very new to matlab and I was trying to display a real time plot of some calculations. I have an N sized vector and I work with m (Say N=4m) values at a time so I want to plot the first m sized result and then as soon as the second m values are calculated have them replace the first plot. My approach was as follows: for i=1:N, ...

flex scatterplot custom renderer

I have a scatter plot with 10 points, some points are above and below some thresh hold. I need to show different color for those above thresh hold below thresh hold within thresh hold Effectively, can the 10 points be colored a different color? Is it possible to do this with some renderer ? I am looking for a renderer since , the ...

Using R for simple image/pattern-recognition task ?

Hi all, I have an image with many dots, and I would like to extract from it what is the x-y location of each dot. I already know how to do this manually (there is a package for doing it). However, is there some way of doing it automatically ? (My next question will be - is there a a way, when having an image of many lines, to detect ...

R. Plot to specific plot in multiple-plot window?

If I create a multi-plot window with par(mfrow=...), is it possible to send data to a specific plot (i.e. "the one in the lower left corner") or is the plotting always necessarily sequential? Is there a package for R that does something like this? For those that are interested, this problem arises out of the fact that R is a single-thr...

Scatter plot with indication of the density of points.

R's qplot function has a nifty alpha parameter for shading coincident points in a scatter plot darker. Here it is in action: http://www.decisionsciencenews.com/2010/07/01/maps-without-map-packages I'm wondering how to do the same in Mathematica. Here's code to grab the data from the above article and plot it, without the nifty shading...

Setting the color of each plot point in a Flex plotchart based on a numeric property of the point object

Hey, I'm new to flex, and I'm working on a plotchart. Each point in the chart is an object with multiple variables. I wanted to know if I could take a numeric variable from this object, and use it to change the color of the plotted point. In this case, the numeric value is a number between 0 and 100 that represents a percentage of life...

Setting the background color of persp() plots

Is there any way to set the background color of plots constructed using the base R function persp()? bg="black" is ignored either when supplied to persp() or previously to par() Thanks ...

Recreate ggplot's geom_smooth CI background - in R basic?

Hi all, I wish to recreate this graph: (from here) Using R base graphics. I have no clue how to do that. Any advice ? (My motivation is that I wish to create a plot where the line width (and/or color) will reflect another dimension. Until now - ggplot2 is the only place I found in R for how to do this. I would be happy to be able...

MATLAB how to plot x,y on image and save

datafile.txt code x y 23 22.1 33.11 23 110 22 23 11 200 24 111 321 24 222 111 24 10 22.1 10 88.3 99.3 10 110 32 10 121 143 10 190 200 EDITED: On the above file, the first column represent the image code which displayed on screen, and the x and y represent the point where people lo...

Plotting images over a graph in Matlab

Hi all, Does anyone know how can one plot() a regular 2D plot in Matlab, and draw little images over that plot? Thanks for any tips. ...