I want to draw a plot using dates as labels for the x axis, but I donĀ“t see how to do it. I have seen a few examples with Objective-C but I have not been able to translate it. Which is the way to go?
Related
As stated in the title, I want to plot a bar which doesn't start from the axis(i.e., where x or y is 0). I tried to use the pgfplots package but I failed to achieve what I need. It doesn't matter if the bars are vertical or horizontal, I just need to find a way to plot the values (as indicated in the table) as bars to show how far from the optimal interval (20-30) they span as shown in the sketch.
sketch
intervals of C/N ratios
I am trying to create one plot with one scatter and multiple lineplots.
For the points to be seen well, I need the scatterplot in the front.
However changing the order inside my code doesn't solve this. The
lineplots always cover the scatterplot. Any ideas?
Please help.
Use the zorder parameter when scatterplotting, e.g.
sns.scatterplot(x, y, ax=ax, color='orange', zorder=7)
You may need to adjust the zorder value depending on the number of elements in your plot.
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 am trying to plot a Pareto plot in Spotfire.
I would like it to look like this (I have used some very basic input data):
But so far I can only make it look like this:
I have done this by creating a hierarchy in 'column properties' and ordering names from lowest to highest experience, then flipping both the x and y axis, so that my curve looks like a Pareto plot, but it is not quite the same.
Is there a more efficient way to do this in spotfire that would allow correct y axis display and also allow the names to go along the bottom?
Any help is greatly appreciated.
Thanks
I think I have an answer for you. In this you do not have to flip the y-axis, and I can get the names in the x-axis, but I still use a hierarchy. I'm not sure it's more efficient, but here goes.
First, I created a Hierarchy defined as:
CREATE NESTED HIERARCHY [New hierarchy (2)]
[yearsOfExp] AS [yearsOfExp],
[name] AS [name]
This allowed me to order the category axis by years of experience.
Secondly, I created a calculated column defined as:
Sum([yearsOfExp]]) over (AllNext([yearsOfExp]]))
I then created a line chart. The hierarchy is the x axis and the calculated column is the y axis. When setting the x axis, be sure to "reverse scale".
I hope this does what you're looking for. Good luck. Any questions, just ask.
I have a set of data that I'm plotting as a scatter graph which has both positive and negative values on both axis. When I plot this in Flot, the axis are draw at the bottom and the left by default. Is there a way to make it draw the axis through the center of the graph? #X=0 and Y=0?
In other words, instead of this:
I want something like this:
That isn't possible in the default flot. I'm sure it could be hacked in if you wanted to dig into the source, but flot by itself only supports left/right for the y-axis, and top/bottom for the x-axis.
In case anybody else comes across the same need, I created a plugin for Flot and put it here:
https://github.com/burlandm/Flot-Origin-Axis
It does what I need, but I won't make any promises that it'll fit your particular scenario. If I have time, I might try and update it to cover more scenarios.