axes Questions
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
5
Solved
If you want to insert a small plot inside a bigger one you can use Axes, like here.
The problem is that I don't know how to do the same inside a subplot.
I have several subplots and I would like to...
Clift asked 3/7, 2013 at 21:41
6
Solved
I am making a group of subplot (say, 3 x 2) in matplotlib, but I have fewer than 6 datasets. How can I make the remaining subplot blank?
The arrangement looks like this:
+----+----+
| 0,0| 0,1|
+...
Berkey asked 5/4, 2012 at 20:22
10
Solved
In ggplot2 how can I stop axis labels being abbreviated - e.g. 1e+00, 1e+01 along the x axis once plotted? Ideally, I want to force R to display the actual values which in this case would be 1,10.
...
2
Solved
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...
4
I am creating a figure with 3 subplots, and was wondering if there is any way of removing the frame around them, while keeping the axes in place?
Sacci asked 25/2, 2014 at 14:22
4
Solved
How can I set the origin / interception of the y-axis and x-axis in ggplot2?
The line of the x-axis should be exactly at y=Z.
With Z=0 or another given value.
2
Solved
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_for...
Rosalinarosalind asked 4/8, 2014 at 12:55
3
Solved
Using Cartopy, I would like to have full control of where my colorbar goes. Usually I do this by getting the current axes position as basis and then create new axes for the colorbar. This works wel...
Resilience asked 4/5, 2015 at 12:33
5
Not sure exactly sure how to fix the following attribute error:
AttributeError: 'AxesSubplot' object has no attribute 'add_axes'
The offending problem seems to be linked to the way I have set up...
Berezniki asked 12/6, 2016 at 23:29
4
Solved
I have a very simple bubble chart, see below. the only thing i need is to be able to get the range (or the min and max) or the x and y axis generated.
trace = go.Scatter(
x=df_test['total_points_...
Booboo asked 26/5, 2020 at 20:19
2
Solved
I'm trying to scale the x axis of a plot with math.log(1+x) instead of the usual 'log' scale option, and I've looked over some of the custom scaling examples but I can't get mine to work! Here's my...
Verism asked 18/4, 2017 at 4:10
2
Solved
In a previous answer it was recommended to me to use add_subplot instead of add_axes to show axes correctly, but searching the documentation I couldn't understand when and why I should use either o...
University asked 10/4, 2017 at 15:4
2
Solved
Data example from dbv:
gender Sektion
1 m 5
2 m 5
3 w 3B
4 w 3B
5 w 3B
6 m 4
I have the following plot:
Sekplot <- ggplot(dbv,aes(x=Sektion,
fill=factor(gender),
stat="bin",
label = pas...
2
Solved
I'm running ipython notebook on a dark theme. When I build a chart on this, the chart is white, but the frame is transparent (hence dark), hiding the ticks which are also dark. Is there a way to ma...
Shading asked 17/9, 2018 at 15:46
3
Solved
I have a tensor of shape (30, 116, 10), and I want to swap the first two dimensions, so that I have a tensor of shape (116, 30, 10)
I saw that numpy as such a function implemented (np.swapaxes) an...
Mystic asked 5/7, 2016 at 20:31
8
Solved
I'm very new to Python and programming in general, so apologies in advance if I'm missing something obvious. I'm trying to plot a graph and label the axes, but every time I try to label the y axis ...
Corkhill asked 9/6, 2014 at 12:10
5
Solved
So I have a set of data that has conditional formatting. Basically it's a set of photometric measurements of stars that I want to put on a chart with different colors for stars in different ranges ...
Consistence asked 14/8, 2014 at 12:1
2
Solved
I want to add flag images such as below to my bar chart:
I have tried AnnotationBbox but that shows with a square outline. Can anyone tell how to achieve this exactly as above image?
Edit:
Bel...
Agro asked 23/5, 2020 at 11:8
1
Based on this question Force the origin to start at 0 I want to implement this into a new created theme and not just as a default setting.
data(iris)
ggplot(iris, aes(x = Species)) +
geom_bar() ...
1
Solved
I'm messing around with some plot styles and ran into a curiosity. I have a plot with twinx() to produce ticks on the right-hand side as well as the left. I want to stagger some ticks, some going f...
Dementia asked 6/11, 2019 at 17:40
4
Solved
I create a figure in a function, e.g.
import numpy
from bokeh.plotting import figure, show, output_notebook
output_notebook()
def make_fig():
rows = cols = 16
img = numpy.ones((rows, cols), dty...
2
Solved
I try to find an elegant way to insert minor ticks on plots created with ggplot2. I found a function which does almost exactly what I want: https://rdrr.io/github/hrbrmstr/ggalt/src/R/annotation_ti...
2
I'd like to create a gif using gganimate, but my axis ranges vary wildly in one frame. This is causing all subsequent frames to be squeezed.
In ggplot2's facets, there's an option to have scales="...
3
Solved
For the main y-axis and x-axis, I have generic titles like "Tank's Ratio" and "Counts". I want a second line of label where I specify the ratio and counts. eg. Just below "Tank's Ratio" I want "# i...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.