How to draw such a graph with gnuplot.
The demos page for gnuplot shows a similar example of this. (It's the last example on that page, and produces the plot below)
Related
is there a way to create a horizontal line in a boxplot?
so i have this boxplot and i want to get the orange line in the first boxplot with the y-axis 00:30 as a horizontal line. Is that even possible?
Edit:
so i have some data like that:
and now i want to create a horizontal line which is 30 minutes so my boxplot should look like this:
so normally it is one boxplot, because i filtered it
I tested an example with your needs. I used two charts and stacked them on top of each other.
The first graph has your data, while the second graph has the average.(I am not an expert in excel).
The data
The First graph
The second graph
In this graph I removed the background (transparent). After "them combination" i removed the axes.
The Final Graph
Then you can merge the two graphs so they always stay aligned.
I've made a chart with Excel 2010's "Combo" option for chart type so I can plot two data series for the same depth points. The image below shows the default, which is very close to what I want - except I would like to have the axes flipped so that the current X axis, which is depth, is displayed as the Y axis and both primary and secondary current Y axes plot as X axes. In other words, I'd like to rotate the chart area by 90 degrees clockwise. The "Switch Row/Column" doesn't do what I want (or expect) and I'm running out of both ideas and patience. Is there an easy fix? Or a hard fix?
Here's the plot as-is:
And here's a dummy plot of the end goal made by rotating the image around in Paint, in case the picture makes it clearer:
Finally, as was pointed out in the comments, the whole thing looks goofy and might be better plotted as a bar graph with two bars. I tried this as well and came away almost all set - but the gray bars plot from left to right and the blue bars plot from right to left. Seems like it should be as simple as changing the "Plot Series On" option to Primary Axis for both, but this destroys the graph.
I looked around and I think this link has instructions for what you're looking for: https://superuser.com/questions/188064/excel-chart-with-two-x-axes-horizontal-possible
I'm trying to create a combined scatter plot and "bar chart" - the bars extend the full height of the chart, but their width varies (I have a table with the start and finish points on the x-axis).
Here is a mock-up:
http://imgur.com/EHzv5YB
Do you think this is possible in Excel? I have found some links on how to overlay multiple plot types, but none involving variable width shaded areas as seen in the example.
Would really appreciate any help. Thanks!
I've written a tutorial showing how to Highlight Certain Time Periods in a Chart.
I want to project a 3D plot into a 2D plot. Assuming f(x,y) describes my 3D plot, I want to treat y as a parameter and simultaneously plot f(x,0), f(x,2), f(x,4), etc. in one 2D plot. Instead of going for different line/point styles and colors with a legend in a corner, I'd like to make each plot in the same style and place a label next to each individual line.
Is this even possible in gnuplot or would I have to fall back on something more complex?
I had a similar question recently. There is an option in the development version of gnuplot (4.7.0) that does this. You can change the position of line titles to be at the end/beginning of the line itself. If your plot looks like I imagine (sort of a contour plot) this may be what you want:
plot f(x,y) title 'f(x,y)' at end
Otherwise you may have to specify the labels and their positions manually:
help set label
for more info.
How do you make an horizontal box-and-whiskers plot in gnuplot? Similarly to this one:
Gnuplot can easily be used to produce vertical box-and-whiskers plots with the 'candlesticks' and 'whiskerbars' keywords, but I have not managed to find any example of an horizontal candlesticks/box-and-whiskers horizontal plot produced via gnuplot online.
Example of a vertical plot produced by gnuplot:
example of a vertical box-and-whiskers plot http://www.cise.ufl.edu/~dts/cop3530/proj02/candlesticks.6.png
Gnuplot generally doesn't switch directions well... for example you can't plot rows instead of columns, and it's hard to make histograms (or any other kind of plot) go horizontal instead of vertical.
People have made horizontal histograms, however, and you might be able to modify the code found at this site.