axis Questions
5
Solved
I want to hide my ticks label on a plot I created, but keep this tick itself (the little marks on the axis). When I try to use what I've found here, for example, the entire tick is removed, and not...
Mainis asked 5/1, 2014 at 17:22
6
Solved
I'm trying to share two subplots axes, but I need to share the x axis after the figure was created. E.g. I create this figure:
import numpy as np
import matplotlib.pyplot as plt
t = np.arange(1000...
Sublunar asked 23/3, 2017 at 10:20
4
Solved
How to detect click on an axis label with chart.js
In the example bellow, I can only detect click on the graph itself
https://stackblitz.com/edit/ng2-charts-bar-template-qchyz6
13
Solved
I have a semilogx plot and I would like to remove the xticks. I tried:
plt.gca().set_xticks([])
plt.xticks([])
ax.set_xticks([])
The grid disappears (ok), but small ticks (at the place of the ma...
Overreach asked 21/10, 2012 at 13:53
2
Solved
I have the following two questions:
(1) I want to get the label to be between two ticks. My original thought was to add the secondary ticks and remove the primary ticks, but axis.minor.ticks.length...
5
I'm getting an error when I try to generate an element that should look like
<hold/>
Using the java client code generated by Axis2.
java snippet
HoldPayment hold = new HoldPayment()
cr.se...
5
Solved
I want to to create a figure using matplotlib where I can explicitly specify the size of the axes, i.e. I want to set the width and height of the axes bbox.
I have looked around all over and I can...
Indefeasible asked 7/7, 2017 at 11:47
15
Solved
I am trying to fix how python plots my data. Say:
x = [0, 5, 9, 10, 15]
y = [0, 1, 2, 3, 4]
matplotlib.pyplot.plot(x, y)
matplotlib.pyplot.show()
The x axis' ticks are plotted in intervals of 5. ...
Foliated asked 26/9, 2012 at 19:12
11
Solved
When I set up an equal aspect ratio for a 3d graph, the z-axis does not change to 'equal'. So this:
fig = pylab.figure()
mesFig = fig.gca(projection='3d', adjustable='box')
mesFig.axis('equal')
mes...
Ezechiel asked 3/12, 2012 at 14:33
3
Solved
I'm plotting ggplot with geom_point. The x-axis will be individuals' ID, and y-axis is variable A. How can I ggplot all and individual ID values on the x-axis without overlapping labels? ID may not...
3
I have some mpl_toolkits.mplot3d surface plots that I am viewing from different angles. When viewed from directly above (elev = 90, azim = 90) the text of the z-axis is all piled up on top of itsel...
Lozengy asked 12/9, 2012 at 15:8
3
Solved
I spent last few days trying to find a way to remove tiny margins from axes in a 3D plot. I tried ax.margins(0) and ax.autoscale_view('tight') and other approaches, but these small margins are stil...
Hibernia asked 10/5, 2013 at 17:59
2
Solved
In matlab, it's straightforward to get and set the position of an existing axes on the figure:
pos = get(gca(), 'position')
set(gca(), 'position', pos)
How do I do this in matplotlib?
I need this ...
Biles asked 17/4, 2014 at 15:59
4
How do I change the border width of a subplot?
Code is as follows:
fig = plt.figure(figsize = (4.1, 2.2))
ax = fig.add_subplot(111)
ax.patch.set_linewidth(0.1)
ax.get_frame().set_linewidth(0.1)
...
Zyrian asked 28/10, 2009 at 19:14
12
Solved
I am creating a figure in Matplotlib like this:
from matplotlib import pyplot as plt
fig = plt.figure()
plt.plot(data)
fig.suptitle('test title')
plt.xlabel('xlabel')
plt.ylabel('ylabel')
fig.save...
Dremadremann asked 16/9, 2012 at 5:54
6
How can I set the y axis range of the second subplot to e.g. [0,1000] ?
The FFT plot of my data (a column in a text file) results in a (inf.?) spike so that the actual data is not visible.
pylab.yl...
Tamah asked 17/5, 2010 at 13:12
3
Solved
I need to make a candlestick chart using some stock data. For this I want to use the function matplotlib.finance.candlestick(). I need to supply quotes to this function and "an Axes instance t...
Embankment asked 25/2, 2013 at 13:5
7
Solved
The error is:
Exception occurred while reading or
writing file {0}The Axis2 facets
cannot be installed since the Axis2
runtime location has not been set. Go
to the Web Services preference page
and...
Archetype asked 9/2, 2010 at 15:27
2
Solved
11
Solved
I have a plot with two y-axes, using twinx(). I also give labels to the lines, and want to show them with legend(), but I only succeed to get the labels of one axis in the legend:
import numpy as ...
Aida asked 30/3, 2011 at 10:10
24
This is the error that I got when I created my first Axis2 web service using Eclipse. After I wrote the class, I created the web service with Apache Axis2. When I click the start server button in e...
Annaleeannaliese asked 30/8, 2011 at 6:50
3
I have created a facet plot using ggplot which has 4 rows and 1 column with this code:
ggplot(data=c, aes(x=Time, y=X.mean, fill = Site, width=.1)) +
geom_bar(stat="identity", position=position_...
Ablebodied asked 8/1, 2014 at 11:6
5
Solved
When making a semi-log plot (y is log), the minor tick marks (8 in a decade) on the y axis appear automatically, but it seems that when the axis range exceeds 10**10, they disappear. I tried many w...
Estop asked 19/5, 2017 at 20:20
2
Solved
I am using the SPEI package along with its sample monthly data of 32 years. I want to modify the x-axis labels to reflect the years not the numbers. However, the hard coded plotting function won't ...
Stamey asked 2/5, 2019 at 22:3
6
Solved
I want to draw a figure in matplotib where the axis are displayed within the plot itself not on the side
I have tried the following code from here:
import math
import numpy as np
import matplotli...
Nasion asked 22/7, 2015 at 7:23
1 Next >
© 2022 - 2025 — McMap. All rights reserved.