axes Questions

2

Suppose I have the following code to create three side-by-side images: n=10 x = np.random.rand(n,1) y = np.random.rand(1,n) z = np.random.rand(n,n) fig, ax = plt.subplots(1, 3) ax[0].imshow...
Berkelium asked 11/5, 2018 at 18:34

2

Solved

Question adapted from this question and solution: Highlighting individual axis labels in bold using ggplot2 I would like to selectively justify the horizontal axes labels depending on meeting a cr...
Hotchpot asked 16/1, 2018 at 16:49

0

I am creating windrose plots using the windrose.py module. I have correctly changed the bin sizes but want to change the yaxis (percentage) tick positions/ labels to: 0, 5, 10, 15, 20 using this co...
Lemming asked 10/1, 2018 at 17:14

1

I have discreet data that looks like this: height <- c(1,2,3,4,5,6,7,8) weight <- c(100,200,300,400,500,600,700,800) person <- c("Jack","Jim","Jill","Tess","Jack","Jim","Jill","Tess") set...
Clearcole asked 4/9, 2017 at 23:55

2

Bokeh Plot with equal axes I created a Plot with the Python library Bokeh (see code). from bokeh.plotting import * figure() hold() rect([1,3], [1,1], [1,0.5], [1,0.5]) patch([0,0,4,4], [2,0,0,2]...
Proconsul asked 31/10, 2014 at 12:31

0

I want to show just the minimum and maximum values for all the axes of a ggpairs {GGally} plot. Find below a reproducible example df=as.data.frame(matrix(1:1000,nrow = 100)) ggpairs(df) I kno...
Isodimorphism asked 18/8, 2017 at 20:5

2

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 se...
Heavenly asked 14/8, 2017 at 2:38

2

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...
Respondence asked 3/7, 2017 at 14:6

2

Solved

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 ju...
Nilsson asked 23/9, 2009 at 14:48

4

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 re...
Gloriole asked 22/8, 2016 at 3:29

1

Solved

I have a question, I am making a program that displays a zoomed area of Peru but the axis shown are in the range of the image (e.g. 7000x7500) but i want to be in UTM range (e.g. x-axis between 500...
Aftercare asked 7/4, 2017 at 17:8

1

Solved

Is there any way to make multiplot aplpy plots dynamically share axes so that when one is moved or zoomed, it moves and zooms the others? I can achieve the affect using matplotlib pyplot's imshow...
Clothesbasket asked 10/3, 2017 at 12:48

1

Solved

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 digi...
Gramineous asked 7/3, 2017 at 18:58

1

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...
Bolan asked 1/3, 2017 at 23:18

1

Solved

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 ...
Toh asked 2/1, 2017 at 14:13

1

Solved

How can i draw object axes. I am refering at the mesh local axes and not the world axes. I know that using: function drawlines(){ var material = new THREE.LineBasicMaterial({ color: 0x0000ff })...
Briefs asked 11/12, 2016 at 13:43

1

Solved

Code 1 where flipping vertically and/or horizontally does not affect axes(); Code 2 where proposed solution does not yield the expected output close all; clear all; clc; x = [5 8]; y = [3 6]; C =...
Gargan asked 7/10, 2016 at 17:58

5

Solved

How can I flip the origin of a matplotlib plot to be in the upper-left corner - as opposed to the default lower-left? I'm using matplotlib.pylab.plot to produce the plot (though if there is another...
Seamark asked 28/8, 2009 at 20:40

2

Is it possible to give more room for tick labels in plotly.js? Long labels in my charts are getting cut off. HTML: <div id="plot"></div> JavaScript: var data = [{ type: 'bar', ...
Hibernia asked 13/4, 2016 at 11:27

1

Solved

I'm attempting to use a custom scale/axis transformation, like so: library(ggplot2) library(scales) dat <- data.frame( time.tot = c(407.17, 168.83, 127.8, 108.88, 69.04, 68.5, 59.76, 407.17, ...
Lorenza asked 12/7, 2016 at 15:49

1

Solved

Once I have created a system of subplots in a figure with fig, ((ax1, ax2)) = plt.subplots(1, 2) can I play around with the position of ax2, for example, by shifting it a little bit to the righ...
Sarnen asked 15/5, 2016 at 16:50

9

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...
Godfrey asked 29/9, 2009 at 5:55

1

Solved

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 Figur...
Mra asked 16/3, 2016 at 15:48

3

Solved

While plotting histogarm, scatterplots and other plots with axes scaled to logarithmic scale in R, how is it possible to use labels such as 10^-1 10^0 10^1 10^2 10^3 and so on instead of the axes s...
Ity asked 1/8, 2011 at 10:38

2

Solved

I have a complicated figure made in matplotlib with three subplots, two of which have twin axes. It works well except there are no tick marks in the figure and I can't figure out how to get them. ...
Underpainting asked 12/1, 2016 at 12:4

© 2022 - 2024 — McMap. All rights reserved.