Questions tagged [axes]

Axes - plural of axis

Axes is plural of axis used in Cartesian coordinate system.

1002 questions
3
votes
1 answer

How to make the axes start from zero in package fitdistrplus in R

I use function fitdist in package fitdistrplus to get the best distribution fitted to my data and draw the ppcomp figure , I use the example codes of ?fitdistrplus to replace my data and codes. data(groundbeef) serving <- groundbeef$serving fitW <-…
Ling Zhang
  • 281
  • 1
  • 3
  • 13
3
votes
1 answer

yAxes not working with min max option

I checked several posts. However none of the solution solved my issue. It's a quite standard usage of min and max. I use the same setting in Barchart and it worked. not working in line chart on the same page. I tried with suggestedMax, suggestedMin…
Qi Yu
  • 31
  • 1
  • 5
3
votes
1 answer

Axes and UserData in MATLAB

I would like to store some data in the axes handle in MATLAB. I am using the "UserData" property in order to do so. I have noticed that the "UserData" property been cleared by the plot command. Is this a normal behavior ? By plotting, I can…
oro777
  • 1,110
  • 1
  • 14
  • 29
3
votes
0 answers

Python's Matplotlib: Override imshow extent

I am plotting a georeferenced image with import numpy as np from matplotlib import pyplot as plt f = plt.figure() ax = f.add_subplot(111) ax.imshow( numpy.dstack((R,G,B)), extent=[xmin,xmax,ymin,ymax] ) Then I am plotting (on the same axes…
fmonegaglia
  • 2,749
  • 2
  • 24
  • 34
3
votes
1 answer

Multiple axes for a single surf plot

I have a surf plot, in which I would like to have two y-axes. I cannot seem to find any other discussion quite like this. The closest I got so far is: surf(peaks); view(0,0) ax(1) = gca; axPos = ax(1).Position; ax(2) = axes('Position',axPos,…
jkazan
  • 1,149
  • 12
  • 29
3
votes
1 answer

Setting all matplotlib axis labels at once

Since I usually try to label my axes in matplotlib plots, I find that I regularly label the x/y/z axes individually, using something like this: fig = plt.figure() ax = fig.add_subplot(1, 1, 1, projection='3d') #
Felix
  • 2,064
  • 3
  • 21
  • 31
3
votes
1 answer

Python, Matplotlib custom axes share Y axis

I have simple code to create a figure with 7 axes/ custom subplots (my understanding is that subplots are equal-sized and equal-spaced and in my particular situation I need one to be larger than the rest). fig = plt.figure(figsize = (16,12)) # row…
RSHAP
  • 2,337
  • 3
  • 28
  • 39
3
votes
1 answer

Matplotlib adding letter ticks

Is there a way to add two ticks (ex. two letters) along with existing ticks (numbers)? I have: but want to add two ticks (letters "a" and "b"). Running the following code deletes the numbers and leaves only letters, however I want to have…
KeVal
  • 351
  • 1
  • 4
  • 15
3
votes
2 answers

Index multiple dimensions of a multi-dimensional array with another - NumPy/ Python

Lets say I have an tensor of the following form: import numpy as np a = np.array([ [[1,2], [3,4]], [[5,6], [7,3]] ]) # a.shape : (2,2,2) is a tensor containing 2x2 matrices indices =…
3
votes
1 answer

Date in Time Series Does not Line up with X-axis

I am trying to plot water temperatures collected from a stream at 15-minute intervals starting on 4/7/2015 and ending on 11/23/2015. I would like to have the x-axis have labels at each tick mark as, "Apr", "May" etc. through "Nov". The code that I…
mkRuser
  • 51
  • 5
3
votes
2 answers

Adding exponent to axes labels (R / ggplot2)

I've looked at a number of the solutions to the same question but applied to different datasets, and none seem to work for me. I'm looking to add metres cubed as the unit for each axis title, with metres cubed obviously showing with an exponent. The…
Luke
  • 35
  • 1
  • 1
  • 4
3
votes
2 answers

python/matplotlib - parasite twin axis scaling

Trying to plot a spectrum, ie, velocity versus intensity, with lower x axis = velocity, on the upper twin axis = frequency The relationship between them (doppler formula) is f = (1-v/c)*f_0 where f is the resulting frequency, v the velocity, c…
Magnus Persson
  • 823
  • 1
  • 7
  • 22
3
votes
1 answer

Set breaks of axis by level of factor in ggplot2

Given a plot where the x axis is discrete, given by a ordered factor, like this plot: with the levels: D E F G H I J 1 1 1 2 2 3 4 Is there a way to do: scale_x_discrete(breaks=c("D","G", "I", "J"), lables=c(1,2,3,4)) without manually copying the…
Hengrui Jiang
  • 861
  • 1
  • 10
  • 23
3
votes
1 answer

How to add plot labels of different axes to the same legend in Python?

I am trying to plot two curves on two y-axes as shown in figure. The red plot (pressure) the primary axis and green (needle lift) the secondary axis. And I am trying to add the plot labels to the same legend. But I cannot add them to the same…
Tom Kurushingal
  • 6,086
  • 20
  • 54
  • 86
3
votes
1 answer

matplotlib change size of subplots

I try to make a figure with different subplots. In the example the left panel is an imshow image and it is a bit too small. How could I enlarge ax1? In order to have the colorbar at the level of the x-axes of ax2 and ax3? The code and output…
Andy
  • 1,072
  • 2
  • 19
  • 33