I'm searching for a XY plot/diagram that give me the ability to make sp lines/curved lines and where I can set the maximum limit of either X or Y values.
I want to make a XY diagram that in the end should look like this visually:
Is it possible with androidplot?
It sounds like you're wanting to constrain the visible graph area to specific min/max values on both the x and y axis.
In Androidplot 1.0 or later, this code will set your display boundaries on each axis to the range of -1 to 1.
plot.setDomainBoundaries(-1, 1, BoundaryMode.FIXED);
plot.setRangeBoundaries(-1, 1, BoundaryMode.FIXED);
As far as the more general question of whether or not it's possible to style a plot to look like that picture - definitely; you should be able to make a plot that's virtually identical.
Related
I currently have a data set of x and y coordinates (position of an animal in an arena) over a period of time. I just used the coordinates to plot a scatter plot of what that looks like. However, instead of having every single coordinate as a separate point, i was wondering if there was a way to create a heat map of the points? So, the higher the likelihood of the animal in a specific area/ similar coordinates, the warmer the color? Hoping for the final product to be a depiction of the arena with a gradient of colors based on the likelihood the animal explores those regions?
Well with that many points, I don't know if Excel is the right choice if wanting to color-coordinate. The site https://app.rawgraphs.io/ has some really cool graphing capabilities. I use this when needing sankey's or something unusual that Excel cannot easily handle.
Here I used 1500 x/y points between 0 and 20. Then I selected the graph type called "Contour Plot".
Would this work?
Or here's a Hexagonal Binning chart of the same data...
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 have two columns of data - first is fractions (goes on x-axis), second is integers (goes on y).
Is there a way to plot one against the other in a histogram type manner so it looks like a spectrum?
Use the "scatter plot" tool. It is also called a "scatter chart" tool. Once you have your chart in place, you can add a trend line to determine the formula for the relationship between x and y values. You will be able to find the formula in terms of y = mx+b. You can also determine the r squared value which will be important in the interpretation of the relationship. There are several options for scatter charts that might lead you off course, so experiment with the tool a bit to discover the correct options for your situation.
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.