Questions tagged [axes]

Axes - plural of axis

Axes is plural of axis used in Cartesian coordinate system.

1002 questions
3
votes
2 answers

Can you add labels under an existing axis?

I am using ggplot2 in r and have made my plot. I would however like to add some intervals, that I have in a .csv file, under my existing x-axis. Here is an example to show what I would like to plot under my…
Martin Andersen
  • 133
  • 1
  • 1
  • 7
3
votes
1 answer

Matplotlib: generate multiple twin axes with different and inverted scale

I want to plot a data series on two x and y axes in order to have 4 different axes. First the x (energy in eV) vs. the y (normalized counts) axis and then x (wavelength which is inversely related to energy) vs. y (counts) axis. My code for this…
beneminzl
  • 149
  • 2
  • 11
3
votes
1 answer

Custom Matplotlib Axis Scale

I'm trying to make a graph with the same axis scales as this one: The y axis can be done simply by setting the y scale to 'Log', but I don't know how to set the x axis to be stretched at both extremes as shown in the graph, or what that scale is…
ayeayeron
  • 63
  • 1
  • 6
3
votes
1 answer

How can I force a dual y axis graph to use the same baseline for each axis?

I have a Google Combination Chart where I am using two y axes. At present, the baselines for each axis are at a different level. I wish to ensure that the baselines for each axis are at the same level. The code I am currently using to display my…
3
votes
4 answers

XPath : Find following siblings that don't follow an order pattern

This is for C code detection. I'm trying to flag case statements that don't have a break. The hierarchy of the tree looks like this when there are multiple lines before the break statement. This is an example in C: switch (x) { case 1: if…
3
votes
1 answer

How to adjust the x axes in a multiplot to have the same length

I basically want to have share the x axis in three plots in a multiplot. Here is the code: set terminal wxt enhanced size 480,288 dashed; #Header end set multiplot; set size 1,0.4; set origin 0,0; set xlabel "x"; set ylabel "y1"; set ytics 200; set…
Changwang Zhang
  • 2,467
  • 7
  • 38
  • 64
3
votes
0 answers

How can I draw a cartesian reference system with X and Y axes centered, passing through the origin of the plot?

I would like to draw using Octave the axis passing both through the origin (0,0) of my plot like in the figure below: In matlab there is axescenter that do exactly what I want. My brother told me to use this: line(xlim,[0 0], 'linestyle', '--')…
G M
  • 20,759
  • 10
  • 81
  • 84
3
votes
1 answer

How do I keep the axes from changing dynamically when I plot an animation in Matlab?

I'm plotting an animation of a function dx/dt and I've set the axes, but when the animation runs, the axes change dynamically, according to the plot. How do I fix this problem? clear all; %Equation variables: s = 0; r = 0.4; %axes limits: xmin =…
Blairg23
  • 11,334
  • 6
  • 72
  • 72
3
votes
1 answer

How to disable the minor ticks in d3 log scale?

I have my real time d3 log scale graph like below: I would like to show only the major ticks with their labels : 10^-2, 10^-1, 10^0, 10^1, 10^2 but not the minor ticks I would like to have the log Y axis look like this without the minor ticks: How…
jhyap
  • 3,779
  • 6
  • 27
  • 47
3
votes
1 answer

Axis labels run into axis when exporting plots with negative tick mark length (ggplot2)

I'm having some trouble exporting a simple scatterplot to a pdf file in ggplot2. Specifically when I set the tick mark length to a negative value (essential), the tick mark labels merge with the axis line (as shown below). The figure appears…
Adam Kimberley
  • 879
  • 5
  • 12
3
votes
1 answer

What is the position of the top of the axis label text in matplotlib?

I'm trying to position some additional annotations to line up with the axis label text in a matplotlib figure. How is this position calculated, as a function of the font size of the tick and axes labels, and the font size of the…
orome
  • 45,163
  • 57
  • 202
  • 418
3
votes
1 answer

How do I get the current limits of a matplotlib axis?

Given a matplotlib axis, how do I find its current min and max limits; e.g., as might have been previously set in ax.set(xscale='log', xlim=...)?
orome
  • 45,163
  • 57
  • 202
  • 418
3
votes
2 answers

Put two y-axes on an imagesc image in MATLAB

I have what I think is a simple problem: I have a matrix that I image using imagesc. I simply want to show a second y-axis on the right hand side of the image. How do I do that? Example: clear all; aMatrix = rand(20,30); yAxis1 =…
Spacey
  • 2,941
  • 10
  • 47
  • 63
3
votes
1 answer

Gnuplot: Shrink axes to plot ("tight" axes)

I have a datafile that I would like to create a pm3d map splot of. Code: set term pngcairo size 800,600 set out "test.png" set pm3d map splot "fill.dat" Problem is, with the odd (but regular) spacings using in the data, gnuplot creates a huge white…
Jost
  • 410
  • 7
  • 19
3
votes
1 answer

barplot two-sided data sets left and right of y axis

I am trying to figure out how to make barplot where I can show two data sets. Each at one side of the y-axis. I need the space for showing many data sets in few graphs. stacked or besides are other options but I would like to find out how to solve…
alex
  • 31
  • 3