Message Boards Message Boards

0
|
3233 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Adding an implicitt Z axis below X axis

Posted 11 years ago
I am trying to figure out how to add an implicitt Z axis below my X axis using ListPlot,  Where the Z axis runs from 1 to 0. 
POSTED BY: Blake Stevison
3 Replies
Getting them to line up might be a bit of a problem I could imagine if you were to program it directly. 

Here is how you'd get the very basic axes down:
Graphics[{}, Axes -> True, Ticks -> {Range[0, 100, 10], Range[0, 100, 10]}, PlotRange -> {{0, 100}, {0, 100}}]

From here there's a number of things you could do. Working directly with the graphics primitives would probably be difficult. The other option is to try to do something tricky with the Ticks option and give it some unique labels for the tick marks. Here is how we can generate tick labels:
Table[Column[{i, 100 - i}, Center], {i, 0, 100, 10}]
So here are the positions and the labels together as pairs:
xTicks=Table[{i, Column[{i, 100 - i}, Center]}, {i, 0, 100, 10}]
And we can use them in the graphics like this. 
Graphics[{}, Axes -> True, Ticks -> {xTicks, Range[0, 100, 10]}, PlotRange -> {{0, 100}, {0, 100}}]
POSTED BY: Sean Clarke
Posted 11 years ago
Here is an examaple of what I want it to look like. 
POSTED BY: Blake Stevison
Can you give an example of the kind of plot you want? This will help make sure we understand exactly what you want.

Are you looking to add a new axis in your plot that's next to the X axis? There isn't going to be a built-in option for this. For things this custom, it is neccessary to build them up from graphics primitives such as Line and Text elements. 
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract