I’m trying to plot a table of values from an uploaded file. It does plot, but because the column 1 max values are 4 times as big as the column2 max values, I get an AspectRatio of 4:1 on the graph. I have used the following without luck - they all produce the 4:1 aspect..
// this is actually the type of plot I’m looking for but I thought I would try Plot to see if AR didn’t work with LLP
Plot[T,AspectRatio->1/4]
I have also added a single x,y data point to the Table file that increases the column 2 max values (currently 100) to the same max as Column 1 (currently 400). This does alter the aspect ratio but it’s not plotting that point in the right spot. The added Point(0,400) gets plotted at 0,200. So the aspect ratio gets much closer (halfway there to be exact) but not what I was hoping for.
I’m not doing any smoothing, averaging or curves, so I’m not sure why the added point doesn’t go where it’s supposed to.
Even if I change that last added point to 0,800, this new point gets plotted at 0,220 (aprox) and the aspect gets only slightly closer to what it should be.
Is it me?
I should point out that the parametric and scatter plots are as described above, however the histogram is plotted correctly with correct aspect ratio.But of course its the parametric I want.
Can you post your input data, or a simplified example that shows the same behaviour so that we can try stuff out? Also, it’s easier to copy and paste code from posts if you format it as code; you can insert code with the leftmost button on the little toolbar just above the area where you post your text.
If ListLinePlot works for your data, then I assume that your data is really just a long list of (x,y) pairs of numbers; is that correct? In this case, how and why does Plot return anything at all, considering Plot only plots functions? Did you do anything else to your data between the Import and the Plot?
Thanks Bianca,
It really doesn’t get much simpler than what i’m attempting. Hence me not uploading the table of values or using the code button (that and i’m typing on my phone and I can’t see the code button)
Correct- its a list of x,y points. There 50 pairs. X ranges from 0 to 100 and y ranges from 0 to 400. Plotted, the values outline the cross section of a torus (where it becomes two unconnected circles). But what i’m getting, because of the aspect issue is two elipses, long in the Y direction. I thought I’d start with this data set so I cpuld spot any problems.
I’m using WAlpha so it’s really just the input declaration for the uploaded table of values and then the LineListPlot to get a visual of the values plotted.
Plot does work, I think because Alpha doesn’t know what else to do with the data (it even connects the dots without the LineListPlot function!)
I will try a symetric data set in the morning and see what that gets me.
I just wanted to check that I using aspect correctly. It’s happy enough with the syntax but it just doesn’t seem to affect the plot.
Oh, you’re talking about Wolfram|Alpha! Yes, in that case the word “plot” is probably taken to have a more generic meaning. Sorry, I can’t help you with that since I don’t use Wolfram|Alpha (and file upload only works with the Pro version anyway). But if ListLinePlot works for your data, I’d just go with that.
So I’ve added a new set of data that is symmetrical (x,y points describing a circle) and I get what I would expect: a plot with an aspect of 1:1 (even without using the AspectRatio command) and a perfect circle.
However if I then add AspectRatio->1/4 to the LineListPlot, there is no change, nor an ellipse.
Is it perhaps that AspectRatio is not part of the functions available on AlphaPro? Or cannot be combined with Plot or LineListPlot?
I’m sorry, I misunderstood your original post; I thought AspectRatio was working with ListLinePlot, but not with Plot. If it doesn’t work with either of them, then yes, maybe it’s just something Wolfram|Alpha doesn’t understand yet.