Questions tagged [axes]

Axes - plural of axis

Axes is plural of axis used in Cartesian coordinate system.

1002 questions
8
votes
2 answers

How to turn off the ticks AND marks of a matlibplot axes?

I want to plot 2 subplots by using matlibplot axes. Since these two subplots have the same ylabel and ticks, I want to turn off both the ticks AND marks of the second subplot. Following is my short script: import matplotlib.pyplot as…
Hailiang Zhang
  • 17,604
  • 23
  • 71
  • 117
7
votes
2 answers

Using SQL Server 2005's XQuery select all nodes with a specific attribute value, or with that attribute missing

Update: giving a much more thorough example. The first two solutions offered were right along the lines of what I was trying to say not to do. I can't know location, it needs to be able to look at the whole document tree. So a solution along these…
phloopy
  • 5,563
  • 4
  • 26
  • 37
7
votes
1 answer

Draw 3D object axes threejs

How can i draw object axes. I am refering at the mesh local axes and not the world axes. I know that using: function drawlines(){ var material = new THREE.LineBasicMaterial({ color: 0x0000ff }); …
prieston
  • 1,426
  • 2
  • 18
  • 39
7
votes
1 answer

GGplot custom scale transformation with custom ticks

I'm attempting to use a custom scale/axis transformation, like so: library(ggplot2) library(scales) dat <- data.frame( time.tot = c(407.17, 168.83, 127.8, 108.88, 69.04, 68.5, 59.76, 407.17, 168.83, 127.8, 108.88, 69.04, 68.5,…
Ken Williams
  • 22,756
  • 10
  • 85
  • 147
7
votes
1 answer

Put text into non-active Axes in MATLAB

Most MATLAB plotting commands allow you to specify which axes to act on, for instance plot (x,y) plots in the current axes, but plot(Ax, x, y) will plot in the axes Ax. Similarly, you can label the x- or y- axis of a non-active axes xlabel(Ax,…
Marc
  • 5,315
  • 5
  • 30
  • 36
7
votes
1 answer

Can I move about the axes in a matplotilb subplot?

Once I have created a system of subplots in a figure with fig, ((ax1, ax2)) = plt.subplots(1, 2) can I play around with the position of ax2, for example, by shifting it a little bit to the right or the left? In other words, can I customize…
XavierStuvw
  • 1,294
  • 2
  • 15
  • 30
7
votes
3 answers

How to prevent Matplotlib from clipping away my axis labels?

I'm preparing some plots for a scientific paper, which need to be wide and short in order to fit into the page limit. However, when I save them as pdf, the x axis labels are missing, because (I think) they're outside the bounding box. Putting the…
N. Virgo
  • 7,970
  • 11
  • 44
  • 65
7
votes
1 answer

Adjusting tick label size on twin axes

I'm having trouble changing the tick label properties on a plot with twin axes. I want the text to be small and in a different font than the default. I found a way that worked fine until I tried using twiny(). The second axes doesn't respond to the…
Åsmund
  • 1,332
  • 1
  • 15
  • 26
6
votes
3 answers

How to tell legends from axes in Matlab?

The following stackoverflow qestion: Matlab: How to obtain all the axes handles in a figure handle? identifies how to get handles to all of the axes from a figure in Matlab. However, this list will also contain handles to legends, at least in…
crobar
  • 2,810
  • 4
  • 28
  • 46
6
votes
2 answers

How can I add images to bars in axes (matplotlib)

I want to add flag images such as below to my bar chart: I have tried AnnotationBbox but that shows with a square outline. Can anyone tell how to achieve this exactly as above image? Edit: Below is my code ax.barh(y = y, width = values, color = r,…
Hassan Zaheer
  • 1,361
  • 2
  • 20
  • 34
6
votes
1 answer

set_markersize not working for right side axis

I'm messing around with some plot styles and ran into a curiosity. I have a plot with twinx() to produce ticks on the right-hand side as well as the left. I want to stagger some ticks, some going farther out that others. I can add padding to any…
likethevegetable
  • 264
  • 1
  • 4
  • 17
6
votes
2 answers

How to enable and disable the logarithmic scale as a viewer in Plotly?

I am recently exploring Plotly and I wonder if there is a way for sharing a plot and let the viewer switch between a logarithmic axis and linear axis. Any suggestion?
Stefano
  • 359
  • 1
  • 5
  • 16
6
votes
2 answers

Justify individual axis labels in bold using ggplot2

Question adapted from this question and solution: Highlighting individual axis labels in bold using ggplot2 I would like to selectively justify the horizontal axes labels depending on meeting a criteria. So borrowing from the above question and…
user2498193
  • 1,072
  • 2
  • 13
  • 32
6
votes
2 answers

Custom logarithmic axis scaling in matplotlib

I'm trying to scale the x axis of a plot with math.log(1+x) instead of the usual 'log' scale option, and I've looked over some of the custom scaling examples but I can't get mine to work! Here's my MWE: import matplotlib.pyplot as plt import numpy…
Arnold
  • 863
  • 5
  • 13
  • 21
6
votes
1 answer

Aplpy multiplot dynamic axis sharing

Is there any way to make multiplot aplpy plots dynamically share axes so that when one is moved or zoomed, it moves and zooms the others? I can achieve the affect using matplotlib pyplot's imshow and subplot routines, but using those limits some…
Alex Howard
  • 319
  • 3
  • 13