Questions tagged [axes]

Axes - plural of axis

Axes is plural of axis used in Cartesian coordinate system.

1002 questions
6
votes
1 answer

Horizontal colorbar over 2 of 3 subplots

does someone know how to elegantly draw a horizontal colorbar over two of three subplots and one additional horizontal colorbar over the third subplot. Ideally, the colorbars should have the same x-dimensions as the corresponding image axis. I did…
F. Win
  • 390
  • 5
  • 17
6
votes
4 answers

Moving x or y axis together with tick labels to the middle of a single ggplot (no facets)

I made the following plot in Excel: But then I thought I would make it prettier by using ggplot. I got this far: If you're curious, the data is based on my answer here, although it doesn't really matter. The plot is a standard ggplot2 construct…
Superbest
  • 25,318
  • 14
  • 62
  • 134
6
votes
1 answer

Matplotlib's Figure and Axes explanation

I am really pretty new to matplotlib, though I know that it can be very powerful. I've been reading number of tutorials and examples and it's a real hassle to understand how does matplotlib's Figure and Axes work. I am illustrating, what I am trying…
user3578925
  • 881
  • 3
  • 16
  • 26
6
votes
1 answer

pairs(): Specifying axes limits of the subpanels

Consider the following example: data(iris) pairs(iris[1:4],xlim=c(0,8), ylim = c(0,8)) As you can see, the axes limits for all subpanels have been altered. However, the alteration required is the specification of xlim and ylim for each subpanel…
Toby
  • 533
  • 4
  • 15
6
votes
1 answer

Using passed axis objects in a matplotlib.pyplot figure?

I am currently attempting to use passed axis object created in function, e.g.: def drawfig_1(): import matplotlib.pyplot as plt # Create a figure with one axis (ax1) fig, ax1 = plt.subplots(figsize=(4,2)) # Plot some data …
AstroCaribe
  • 63
  • 1
  • 4
6
votes
3 answers

Match legend to axes objects

Context: I have a (programmatic) GUI which contains several axes objects inside some uipanel parenting structure. Some of these axes have legend objects associated, some don't. I want to include a button in my GUI which copies the currently visible…
scenia
  • 1,609
  • 14
  • 33
6
votes
1 answer

plot: Decimal point accuracy on the axis

I have two columns of data, X and Y with each entry having 4 places of data after the decimal in both the vectors. When I make the simple plot with plot(x,y) the axes have the data shown up to 2 decimal point accuracy. How do I change this to a 4…
hearse
  • 379
  • 2
  • 4
  • 23
6
votes
2 answers

how to prevent axes from intersecting in ggplot2

I'm using ggplot2 to make line graphs of some log-transformed data that all have large values (between 10^6 and 10^8); since the axes doesn't start at zero, I'd prefer not to have them intersect at the "origin." Here's what the axes currently look…
phosphorelated
  • 635
  • 2
  • 7
  • 22
6
votes
2 answers

MATLAB how to get mouse click coordinates

I have made my GUI using GUIDE. I have an axes (tag=axes1). An image is displayed in the axes. When i click on the image(inside axes) I need to get the coordinates. I get the coordinate values when image is not added to axes.But image is displayed…
HelloASP
  • 71
  • 1
  • 1
  • 5
6
votes
2 answers

Crossing axis and labels in matlab

I just can't find it. How to set up axis and labels in matlab so they cross at zero point, with the labels just below the axis not on left/bottom of the plot ? If I didn't make myself clear - I just want the plot to look like like we all used to…
Rook
  • 60,248
  • 49
  • 165
  • 242
5
votes
2 answers

both a top and a bottom axis in pylab (e.g. w/ different units) (or left and right)

I'm trying to make a plot with pylab/matplotlib, and I have two different sets of units for the x axis. So what I would like the plot to have is two axis with different ticks, one on the top and one on the bottom. (E.g. one with miles and one with…
BlackShift
  • 2,296
  • 2
  • 19
  • 27
5
votes
0 answers

Matplotlib: Axes3D axis limit is not properly working! How to remove extra offset from bounding ticks?

I'm trying to plot 3d bars using bar3d and Axes3D of matplotlib and limiting the z-axis range to [0,1], but .set_zlim3d(0,1) method is not properly working and there is extra offset relative to bounding ticks. These extra offsets are shown by…
Mehdi
  • 1,192
  • 1
  • 9
  • 21
5
votes
3 answers

How to apply logarithmic axis labels without log scaling image (matplotlib imshow)

I have a large data set that is logarithmic in distribution. I want to make a heat map, so I do a 2D histogram and pass that to implot. Because the data is logarithmic, I am passing the log of the data to the histogram. When I make the plot,…
Alex
  • 427
  • 6
  • 12
5
votes
2 answers

matplotlib axis('tight') doesn't work?

According to the documentation, ax.autoscale(tight=True) should If True, set view limits to data limits; With ax.axis('tight') being similar: ‘tight’      Limits set such that all data is shown (sic) And we even see that it works in the…
Evgeni Sergeev
  • 22,495
  • 17
  • 107
  • 124
5
votes
2 answers

plotting a sf object with geom_sf() with any projection other than lat-long

I am trying to plot a polygon with geom_sf() in any projection other than lat-long. I am using the example found in the manual pages for geom_sf() Importing the dataset: nc <- sf::st_read(system.file("shape/nc.shp", package = "sf"), quiet =…
ze miguel
  • 306
  • 3
  • 9