Questions tagged [axes]

Axes - plural of axis

Axes is plural of axis used in Cartesian coordinate system.

1002 questions
15
votes
1 answer

matplotlib get all axes that a given figure contains to apply some settings

I'm writing a function that modifies the axes size and position on a figure, but when comes twin axes it makes a problem: import matplotlib.pyplot as plt def fig_layout(fig, vspace = 0.3): # function to make space at the bottom for legend box…
user1850133
  • 2,833
  • 9
  • 29
  • 39
15
votes
9 answers

How to show x and y axes in a MATLAB graph?

I am drawing a graph using the plot() function, but by default it doesn't show the axes. How do we enable showing the axes at x=0 and y=0 on the graph? Actually my graph is something like: And I want a horizontal line corresponding to y=0. How do I…
Lazer
  • 90,700
  • 113
  • 281
  • 364
14
votes
1 answer

Add legend outside of axes without rescaling in MATLAB

I've got a GUI in MATLAB with a set of axes pre-placed. I'm using the location property of the legend to place it to the right hand side of the axes. However, by doing this the axes get re-scaled so that the axes+legend take up the original width…
Doresoom
  • 7,398
  • 14
  • 47
  • 61
14
votes
2 answers

Matplotlib pyplot axes formatter

I have an image: Here in the y-axis I would like to get 5x10^-5 4x10^-5 and so on instead of 0.00005 0.00004. What I have tried so far is: fig = plt.figure() ax = fig.add_subplot(111) y_formatter =…
user3397243
  • 567
  • 2
  • 10
  • 20
13
votes
1 answer

Set scientific notation with fixed exponent and significant digits for multiple subplots

I am trying to fix the axes to scientific notation of two different sets of data where one is [1-9]x1e-3 and the other is [1-9]x1e-4. I would like to set both axes to be 10^-4 and have the one digits after decimal (e.g. %.1e). Here is a simple…
Gregory
  • 341
  • 1
  • 2
  • 10
13
votes
4 answers

How do I edit the axes of an image in MATLAB to reverse the direction?

I would like to edit the axes in my series of images being displayed. This is what my image looks like: As you can see, it ranges from 0 to about 500 from top to bottom. Can I invert that? Plus, I want to mirror the image being shown, so that it…
NLed
  • 1,845
  • 14
  • 39
  • 68
12
votes
1 answer

combining XPATH axes (preceding-sibling & following-sibling)

Say I have the following UL:
  • barry
  • bob
  • carl
  • dave
  • roger
  • steve
I need to grab all the LIs between bob & roger. I can grab everything after bob with…
MrGlass
  • 9,094
  • 17
  • 64
  • 89
12
votes
1 answer

Define the order of categorical axes in SSRS 2008 chart control

I'm trying to make a VERY simple graph with the chart control in SSRS 2008 and, of course, Microsoft wants to make things as difficult as possible. The x-axis contains stations on an assembly line and the y-axis contains some numerical value that…
Ryan
  • 185
  • 1
  • 1
  • 7
12
votes
1 answer

Matlab: How to align the axes of subplots when one of them contains a colorbar?

Minimal example: [x,y,z] = peaks(50); figure; subplot(5,1,1:4); pcolor(x,y,z); shading flat; colorbar; subplot(5,1,5); plot(x(end/2,:), z(end/2,:)); In this example I'd like to have the lower subplot show the cross-section of peaks along y=0 and…
Tobias Kienzler
  • 25,759
  • 22
  • 127
  • 221
11
votes
1 answer

Matlab area() edge colors cover the axes lines, is there a work around?

figure('Color', 'w') box on x = 1:10; y = 5 * x + 2; area(x, y, 'FaceColor', 'b', 'EdgeColor', 'b') This code creates a figure with the area under the curve shaded blue. The EdgeColor property sets the trapezoidal line around the filled area to…
moorepants
  • 1,813
  • 2
  • 22
  • 23
11
votes
1 answer

Is there a way to remove a single plot from existing axes?

Is there an easy way to remove a plotted line from a set of axes without clearing everything else on the axes? I'm trying to implement a GUI with a listbox containing several data sets. I can make the callback function plot the selected data, but…
Doresoom
  • 7,398
  • 14
  • 47
  • 61
11
votes
4 answers

How can I set the y axis in radians in a Python plot?

I would like to write the radian units of the axes as proportional to \pi: something like $\frac{\pi}{4}$, $\frac{\pi}{2}$, ... in place of 0.785, 1.5707 ... Is there any standard way? As an example, what should I add to the following…
DdD
  • 572
  • 1
  • 5
  • 12
11
votes
1 answer

matplotlib animated plot wont update labels on axis using blit

I am plotting data in a plot using wxPython where the data limits on the y- axis are changing with the data. I would like to change the axis dynamically without redrawing the whole canvas like canvas.draw() rather I'd like to use blitting for this…
Merlin
  • 297
  • 1
  • 3
  • 10
10
votes
1 answer

How can I let my stack overflow?

I want to make a bar chart in Matlab, where one of the categories is "breaking through the roof" of the axes, over the y-axis limit, but I can't figure how to do this. When I change the upper limit to a lower value, the bar gets trucked. What can I…
EBH
  • 10,350
  • 3
  • 34
  • 59
10
votes
1 answer

What is the correct way to replace matplotlib tick labels with computed values?

I have a figure with a log axis and I would like to relabel the axis ticks with logs of the values, rather than the values themselves The way I've accomplished this is with plt.axes().set_xticklabels([math.log10(x) for x in…
orome
  • 45,163
  • 57
  • 202
  • 418
1 2
3
66 67