In R, the plot() function takes a pch argument that controls the appearance of the points in the plot. I'm making scatterplots with tens of thousands of points and prefer a small, but not too small dot. Basically, I find pch='.' to be too small, but pch=19 to be too fat. Is there something in the middle or some way to scale the dots d...
Hi!
Flash/Actionscript 3 lack the possibility to "draw" text to a displayobject graphics - a textfield has to be created, added and set. This is rather clumsy and time consuming.
In the wait for simple and stable alternatives (for example http://lab.polygonal.de/2009/12/15/font-rendering-with-the-fp10-drawing-api/), is there a class or...
To illustrate I currently have something like
int startX,endX,currX;
int startY,endY,currY;
public void updatePos(){
if(currX<=endX){
currX+=1;
}
//Same for y
I can see that I dont want to move x and y the same amount each time but dont know how to work out what I should do to determine how much each should be adjusted.
Any idea...
EDIT: I have realized the source of my problem. I only have count information for the counties which I have data for, which is less than the number of counties in the area I'm plotting against.
It stands to reason that the problem lines of code are here:
mapnames <- map("county",plot=FALSE)[4]$names
colorsmatched <- d$colorBuckets [na....
I'm interested in making a plot with a least squares regression line and line segments connecting the datapoints to the regression line as illustrated here in the graphic called perpendicular offsets:
http://mathworld.wolfram.com/LeastSquaresFitting.html
I have the plot and regression line done here:
## Dataset from http://www.apsnet....
Does anyone know of a way to control the font size/color/weight of the row and column names when plotting a correspondence plot with the ca package?
The following code will produce a very nice looking chart, though if there were more attributes (very heavy, super heavy, something more than super heavy) or more classes of workers (peons,...
Does anyone have any recommendations for plotting scientific data in .net (c# winforms). Some of my requirements are: real time plotting, 3D (waterfall), multiple axis, ability to accept BindingList as a data source and recognize any changes to the data. I also need a high level of user interactivity such as the ability to graphically se...
Hi everyone,
I have a function that takes longitude and latitude and converts it to x and y to be plotted. The conversion to X and Y is working fine and that is not what I have the problem with.
I want to ensure that two points are not plotted in the same place. In one set of results there are about 30 on top of each other (because the...
How can I add a newline to a plot's label (e.g. xlabel or ylabel) in Matplotlib? For example,
plt.bar([1, 2], [4, 5])
plt.xlabel("My x label")
plt.ylabel(r"My long label with $\Sigma_{C}$ math \n continues here")
Ideally i'd like the y-labeled to be centered too. Is there a way to do this? It's important that the label have both t...
I have a large number of data points which are two dimensional coordinates with non-integer values (floats). I am looking for a Java library that can help me plot these points, allowing for custom point size, color, and labels. Further, I would like the user to be able to interact with the points with panning and zooming, and I want to b...
I'm curious is it possible to change text properties of tick labels independently of axes properties. Do they have handles? I'd like to control their position better, alignment, color, fonts, etc.
I know I can substitute them with text labels, but it has some drawbacks. Any alternative solutions?
Particularly, is it possible to put xtic...
I need to colour datapoints that are outside of the the confidence bands on the plot below differently from those within the bands. Should I add a separate column to my dataset to record whether the data points are within the confidence bands? Can you provide an example please?
Example dataset:
## Dataset from http://www.apsnet.org...
Hi,
I am trying plot data sets consisting of 3 coordinates:
X-coordinate, x-coordinate and the number of occurrences.
example:
1 2 10
3 1 2
3 2 1
I would like to draw for every line a dot at x,y with a diameter which is depending on the third value.
Is that possible with Gnuplot?
/Markus
...
I am trying to plot the following numbers on a log scale as a scatter plot in matplotlib. Both the quantities on the x and y axes have very different scales, and one of the variables has a huge dynamic range (nearly 0 to 12 million roughly) while the other is between nearly 0 and 2. I think it might be good to plot both on a log scale....
I have a 2-d array containing pairs of values and I'd like to make a boxplot of the y-values by different bins of the x-values. I.e. if the array is:
my_array = array([[1, 40.5], [4.5, 60], ...]])
then I'd like to bin my_array[:, 0] and then for each of the bins, produce a boxplot of the corresponding my_array[:, 1] values that fall ...
Hi,
I have a piece of hardware which sends out a byte of data representing a voltage signal at a frequency of 100Hz over the serial port.
I want to write a program that will read in the data so I can plot it. I know I need to open the serial port and open an inputstream. But this next part is confusing me and I'm having trouble underst...
I am looking for good plotting library (line, pie, column charts) which allows to interact with user touches something like in Stocks app.
I found a core-plot library but seems like that interaction logic is not well-covered.
Please suggest what libraries can be used?
...
How do you plot two figures at the same time in Matlab? Every time I use surf() it plots over the old one. Also, how do you save the images so you can export them to MS word or powerpoint or something?
...
How do you get rid of the axes and dotted line grids when you plot in Matlab? Also, how do I make subplots of subplots. Since that's probably not very clear, what I mean is the following...
Let's say I have a 10x10x10 .mat file, so I open each of the 10 frames and plot what I have on each 10x10 frame. I generate 2 different plots for ea...
I am doing something like this:
a = [1:100];
for i=1:100,
plot([1:i], a(1:i));
end
My issue is that the plot is not shown until the loop is finished.
How can I show/update the plot in every iteration?
...