Questions tagged [axes]

Axes - plural of axis

Axes is plural of axis used in Cartesian coordinate system.

1002 questions
3
votes
0 answers

Matplotlib zeroed spines extend out of axis when panning

I'm specifically referring to spine placement example code found here, via the matplotlib documentation. Here's a picture of the problem I'm having: By using the panning tool, I have moved the left spine for the "zeroed spines" plot beyond the axes…
3
votes
1 answer

How do I remove values from one y-axis when having multiple axes?

How do I remove the values from the right y-axis in this multiple axis plot? Code source. figure x1 = Pmax; y1 = FuelCons; line(x1,y1,'Color','r') ax1 = gca; % current axes ax1_pos = ax1.Position; % position of first axes ax2 =…
Clone
  • 3,378
  • 11
  • 25
  • 41
3
votes
2 answers

Formatting axes of plots in r

I want to plot a beta distribution in a double logarithmic plot. x <- seq(0, 1, length=1001) y <- dbeta(x, 0.1, 0.1) plot(x, y, type="h", log="xy") The xtics are set at 0.001 0.005 0.01 (without label) 0.05 0.1 (without label) 0.5 1 (without…
R_User
  • 10,682
  • 25
  • 79
  • 120
3
votes
1 answer

RGoogleMaps axes

I can't find any documentation of the following problem I'm having with the axis labels in RGoogleMaps: library(RgoogleMaps) datas <- structure(list(LAT = c(37.875, 37.925, 37.775, 37.875, 37.875), LON = c(-122.225, -122.225,…
Rguy
  • 1,622
  • 1
  • 15
  • 20
3
votes
1 answer

Plotly: How to set zeroline opacity?

Is there a way to change the opacity of the zeroline in plotly? I am trying to layer the zeroline for my y-axis over my plot so it does not appear behind, but also have opacity/alpha of 50%. Is this possible?
Ferhat
  • 394
  • 1
  • 4
  • 17
3
votes
1 answer

Horizontally Align Y Labels of Two Y Axis in Matplotlib

I am trying to create a dual axis plot with y labels on the top of the axis on the same height fig, ax = plt.subplots(1, 1) ax.plot(data_left.index, data_left, label='Preis') ax.set_ylabel('Preis', fontsize=label_size,…
Quastiat
  • 1,164
  • 1
  • 18
  • 37
3
votes
0 answers

Processing 3: How do I not let the axes move along with the shape?

I know this might be market as duplicate, but no one answered my one week's ago question, so I ask again: I'm making a simple 3D puzzle, where you have to rotate a n*n number of cubes, you do that using the x, y, and z axis. The problem is, that…
3
votes
1 answer

How to use nonlinear axes in Gnuplot?

I saw some examples like this one: f(x) = log10(x) g(x) = 10**x set nonlinear x via f(x) inverse g(x) So this one is equivalent to just log-scaling the x. But I don’t get why we need to write the inverse function? And also I have this…
3
votes
1 answer

Understanding maplotlib and how to format matplotlib axis with a single digit?

I am having an very hard time getting the ticklabels of a seaborn heatmap to show only single integers (i.e. no floating numbers). I have two lists that form the axes of a data frame that i plot using seaborn. import numpy as np import pandas as…
T Walker
  • 330
  • 1
  • 3
  • 12
3
votes
0 answers

ValueError: c of shape (7303,) not acceptable as a color sequence for x

I am trying to visualize some data in Axes3D, but I'm getting an error that I don't know how to solve. import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sb from sklearn.cluster import KMeans from…
pesc9
  • 187
  • 1
  • 12
3
votes
2 answers

Reset Axes in Matlab

There is a axes named image in which I show the image when the user presses the browse button. imshow(orgImg, 'Parent', handles.image); Then I do image processing stuff. There is a clear button to clear that image shown in image axes after done all…
3
votes
2 answers

ggplot2: Bars between x-axis ticks

The data I need to visualise contains passenger loads on a train between 4 stations. The data is provided in an ordered fashion, ie. between Station A and V there are 432 passengers on the train, between V and B 543 and so on. In the coding example…
flo
  • 134
  • 8
3
votes
1 answer

How to specify axes for a pcolormesh?

So i'm trying to plot a (125 x 1000) grid with specified values. I'm using matplotlib with pcolormesh. This is how my code looks, enzyme array just symbolic. enzyme = np.array([125 x 1000]) plt.pcolormesh(enzyme,…
CFRedDemon
  • 135
  • 1
  • 7
3
votes
1 answer

Axes not in order on plot

I've been trying to show an area using coordinates. When I input the coordinates directly into a list, it shows the area. But, when I use variables, it doesn't. #plotting a triangle using coordinates print('Enter the coordinates') Na =…
3
votes
2 answers

How to draw means and error bars on axes in ggplot2 R

I'd like to plot the means and error bars on the axes of my qplot in R. Here I provide an example of what I mean: As you can see on the axes in yellow are drawn means and error bars. I'd like to have that on my qplot. Consider this subset of…
Evy
  • 33
  • 6