plotting

How to plot in circle instead of straight line axis in Matlab?

I have a set of 3 datasets which I want to plot in MATLAB, but the 'x' axis, I want to give in the form of a circle instead of of straight bottom line. Any idea on how to do it? An example plot: The normal command for plotting in MATLAB is plot(x, data1, x data2, x, data3), in that the x axis is taken as the straight line. I want the...

In matplotlib, how to draw a bar graphs of multiple datasets to put smallest bars to front?

I want to put multiple datasets on a bar graph and stop the smaller bars being obscured by the larger ones, and I don't want to offset them. For example, bar(0, 1.) bar(0, 2.) only shows the second bar of height of 2.0, the first bar is hidden. Is there a way to get matplotlib to draw the bars with the smallest on top? NB I don't wan...

Java/Graphics: Plotting 3d coordinates?

hi, I'm coding a programm, that will produce 3d coordinates for a rocket and I would like to do a rudimentally graphic output for this. it just has to be scaleable and rotationable, so that you can change the view manually. the postions should be connected by lines and it ould be nice to have spheres for earth and moon ( and perhaps ad...

Fat error bars wanted

Here's a plot I made using matplotlib. It uses the bar and scatter methods from pylab. I have 3 issues: How to make the error bars fatter? No API in bar for this that I can see. How to specify the axes properly? How to stop the x-axis labels from showing? The first is most important, as I have no idea. I guess one more thing would b...

How can I plot multiple functions in R?

Using ggplot, is there a way of graphing several functions on the same plot? I want to use parameters from a text file as arguments for my functions and overlay these on the same plot. I understand this but I do not know how to add the visualized function together if I loop through. ...

R - how to use contents of one vector as the symbol in a plot?

I have a two vectors of numbers of equal length. How do I plot the first vector while using the corresponding element in the second vector as the printing character? (Background: I sorted the first column and the second column holds the original indices. I want to use the indices as the printable character so that I can see which data po...

Plotting Library for OpenGL

I need to draw a scientific graph (for example, a line or bar graph) and then render it in my application, which uses OpenGL for all display-related purposes. What is the best way to do this? Does anyone know of a plotting library for OpenGL? I haven't been able to find one, and the best thing I've come up with so far is to use LibGD...

Plotting of multiple comparisons in R ?

Hi all, When one wishes to compare (test) multiple groups (as is the case, for example, when doing anova), one is confronted with the issue of multiple comparisons. The same applys if we wish to plot the comparisons. My question is thus, what tools (in R) do you know of that allow plotting that reflects multiple comparisons? Currently...

Plotting axes with different scales for one data set in R

I have a large data set I am plotting in R, and I'd like to have an axis on each side of the graph show the data in two different scales. So for example, on the left vertical axis I'd like to plot the data directly (e.g. plot(y ~ x) ) and on the right axis, I'd like to have a linear scaling of the left axis. (e.g. plot( y*20 ~ x). So t...

Plotting only upper/lower triangle of a heatmap

In maptplotlib, one can create a heatmap representation of a correlation matrix using the imshow function. By definition, such a matrix is symmetrical around its main diagonal, therefore there is no need to present both the upper and lower triangles. For example: The above example was taken from this site Unfortunately, I couldn't figu...

Plotting a series of 2D black and white plots in MATLAB

Hi, I am trying to plot a series of 2D matrices containing ones and zeros (effectively black and white images) in matlab, which are ordered in 3D. The code I have so far is: function PlotthreeD() numrows = 100; numcols = 100; Plot1 = zeros(numcols); Plot1(20:50,20:50) = 1; Plot2 = zeros(numcols); Plot1(20:70,20:90) = 1; Plo...

Plot Equations using Javascript (or anything client side)

Is there any library which I can use to plot mathematical equations? (Preferably using javascript, could me in Java also; or anything clientside) ...

How to make the angles in a matplotlib polar plot go clockwise with 0° at the top?

I am using matplotlib and numpy to make a polar plot. Here is some sample code: import numpy as N import matplotlib.pyplot as P angle = N.arange(0, 360, 10, dtype=float) * N.pi / 180.0 arbitrary_data = N.abs(N.sin(angle)) + 0.1 * (N.random.random_sample(size=angle.shape) - 0.5) P.clf() P.polar(angle, arbitrary_data) P.show() You wil...

Plotting multi-colored line in Matlab

I would like to plot a vertical line (I'd prefer any orientation, but I'd be happy with just vertical right now) with two-color dashes, say red-blue-red-blue-... I know I could do it like this: plot([1,1],[0,1],'r'), hold on, plot([1,1],[0,1],'--b') However, since I need to be able to move the line, among others, it should only have ...

Techniques and algorithms for precise and efficient graph plotting

I'd like to plot mathematical functions and I'm looking for techniques and algorithms for precise and efficient plotting. 2D plotting should suffice. I focus on techniques and algorithms, not libraries or languages. Thanks in advance! ...

Minimizing pen lifts in a pen plotter or similar device.

I'm looking for references to algorithms for plotting on a mechanical pen plotter. Specifically, I have a list of straight vectors, each representing a line to be plotted. First I want to remove duplicate vectors, so each line is only plotted once. That's easy enough. Second, there are many vectors that intersect, sometimes at endpoin...

Plotter: What is fixed - the height or the width

I am fixing some printing (plotter) problems in our java code(windows 32). The paper is 50 meter roll , loaded on to plotter. The paper It 36 inch "wide". I am printing image 36inch by 108 inch. When I print what is with height and width I can use? [ FYI. The testing is done using print to file, No paper is wasted :) ] Thanks,...

Setting `axes.linewidth` without changing the `rcParams` global dict

So, it seems one cannot do the following (it raises an error, since axes does not have a set_linewidth method): axes_style = {'linewidth':5} axes_rect = [0.1, 0.1, 0.9, 0.9] axes(axes_rect, **axes_style) and has to use the following old trick instead: rcParams['axes.linewidth'] = 5 # set the value globally ... # some code rcdefaul...

perl: tk: a way/widget that allows pixel level control over the output

I want something like a canvas, but where i'd be able to manipulate pixels easily in addition to all the provided geometries, that can be drawn on canvas. Is it possible to embed something like GD::Image into a canvas? So then I maybe could make the image transparent and set some pixels in it (GD::Image->setPixel()) positioning it over ...

R: How to plot data grouped by a factor, but not as a boxplot

In R, given a vector casp6 <- c(0.9478638, 0.7477657, 0.9742675, 0.9008372, 0.4873001, 0.5097587, 0.6476510, 0.4552577, 0.5578296, 0.5728478, 0.1927945, 0.2624068, 0.2732615) and a factor: trans.factor <- factor (rep (c("t0", "t12", "t24", "t72"), c(4,3,3,3))) I want to create a plot where the data points are grouped as defined by ...