Questions tagged [axes]

Axes - plural of axis

1
vote
2answers
23 views

Octave axes limits change back to auto after plotting

I am experimenting with octave animations and I have an issue with the following code: clear x = 0:pi/1000:2*pi; y = sin(x); y2 = sin(2*x); y3 = sin(3*x); figure xlim("manual"); ylim("manual"); xlim([...
1
vote
0answers
5 views

Graph flattened on the y's axe

I am trying to draw a hypotrochoïde figure, but my graph is flattened on the axes of y. I cann'ot find the error. Please help me! Thank you in advance! :) #Définir la fonction hypotrochoïde ...
1
vote
1answer
23 views

Enable white frames on matplotlib figure/ Disable transparent frames

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 make ...
1
vote
1answer
30 views

python matplotlib convert string variable to axes attributes [duplicate]

I am not really a python guy. I am coming from Fortran background and trying to understand object-oriented programming, so please forgive me if my questions are silly! I have the following simple ...
0
votes
1answer
13 views

matplotlib axes histogram patches

How do you get the object from ax.hist() and then setp for the object. Here is what I mean: n,bins2,patches = ax2.hist(arra,bins=18,weights=1./bias,normed=False,color='#d9d9db') ax2.hist.setp(...
1
vote
0answers
14 views

R-Project: How to limit axes in SPI plot? ylim & xlim don't work

Dear stackoverflow community, I'm quite new in R and this is my first stackoverflow entry so please show mercy with me if it's not the perfect questioning. I'm calculating standardized precipitation ...
0
votes
1answer
20 views

gnuplot plot loop through axes

While plotting in gnuplot, is there a way to loop through axes? Something like this: var_axes="x1y1 x1y2" plot for [i=1:2] datafile using 1:2 axes word(var_axes,i) It complains: "axes must be x1y1, ...
0
votes
1answer
24 views

Adding breaks to count (y axis) of a histogram according to the count min-max range in R?

I have a ggplot histogram plot. On the x axis I have a factor variable (1,2,3,4,..) On the y axis I have count. I want my y axis to be from minimum count to maximum count, by 1. I am playing with ...
0
votes
0answers
6 views

django-axes failed login attempts are not consecutive

django-axes 4.1.0. I set the following configurations for django-axes which are working fine to soe limit: AXES_LOCK_OUT_AT_FAILURE = config('AXES_LOCK_OUT_AT_FAILURE', default=True, cast=bool) ...
0
votes
0answers
8 views

How to warp the axes of a plot in r

I need to build in r a plot with the y axis warped. With that I mean that the distance between ticks (and values) in the central part of the y axis is larger than the distance of the ticks on either ...
0
votes
0answers
14 views

VBA - Charts - .MajorUnitScale and .BaseUnit properties errors

I have a problem with adjusting units of the Category Axis of my Chart in VBA. I get Errors whenever I try to use .BaseUnit and .MajorUnitScale properties. Below you will find the code and the ...
0
votes
0answers
10 views

How to hide value 0 on Axis Vega Chart

I am building a vega chart. on the x-axis, I don't want to show 0 value on the axis.
0
votes
0answers
20 views

Inconsistent 3D quiver behavior in Matplotlib

I'm trying to make a 3D plot with different layers and putting arrows on them, however arrows show up below the layers when different z limits are specified. They appear if I change the z limits. Here ...
0
votes
0answers
17 views

d3.js yScale doesn't seem to update?

Creating the following visualisation - when I run a Python script to update the .csv feeding into this doc (ideally, this would happen every 12 hours), the yScale (therefore the yAxis) doesn't seem to ...
-1
votes
1answer
40 views

X axis labels not present despite using scale_x_discrete for my data

I am trying to plot temperature and precipitation by month using ggplot. Having spent some time getting two y axis (contrary to good plotting theory - i know!), my x axis is now not present. Any ...
1
vote
1answer
27 views

Why does matplotlib ax.transData.transform gives different values in different ipython cells? How to fix this?

I was suffering a really bizarre issue with matplotlib's ax.transData.transform in ipython. Basically, in the cell where fig, ax = plt.subplots() is declared, running ax.transData.transform for either ...
0
votes
1answer
30 views

Duplicating y axes

I have the below code. In a nutshell, I need to duplicate the bottom x axes so I keep already plotted data (in place) but change the xlim. I have tried set_xlim after plotting the data (just readjusts ...
0
votes
0answers
8 views

How to plot 2 lines in pyplot with seperate x and y axis? [duplicate]

I want to plot 2 time series using PyPlot, but I want them to each have their own x and y axis. All the solutions I have seen use twinx() or twiny(), but I do not want them to share either axis. ...
1
vote
1answer
20 views

python matplotlib iterating on axes.lines get wrong length

After creating an axes object (names ax) and fill it with Line2D instances, I want to remove a subset from axes.lines (containing these Line2D instances), based on label. However, when I iterate on ...
0
votes
0answers
25 views

Matlab - issue about value overlapping along y axis

I have drawn a probability plot shown as below. However, values are overlapping along y axis. I try to modify the font size, set(gca, 'FontSize', 8) but I think there are many values along y axis. ...
0
votes
1answer
64 views

How can I get length of axis' major ticks in matplotlib?

I know that I can set length of ticks with length parameter of AxesSubplot.tick_params() method. How may I determine the actual length of major ticks of certain axis? Please assume the length may be ...
0
votes
1answer
33 views

Why pairplot gives asymmetrical (different upper- and lower-triangle) plots when it should not?

I used a code like: g = sns.pairplot(df.loc[:,['column1','column2','column3','column4','column5']]) g.map_offdiag(plt.hexbin, gridsize=(20,20)) and have a pairplot and I expect that upper- and lower-...
0
votes
1answer
228 views

R ggplot remove x ticks/titles without removing the space left for them

In ggplot, it is often the case that I will want to create a multiplot using grid.arrange() and arrangeGrob() where axis labels are redundant. Take for example the following figure: data = data.frame(...
0
votes
0answers
12 views

Two y-axes but ticks do not match (matlab)

I'm trying to use two y-axes, but the ticks on the right-hand side axis do not match the ticks of the left-hand side axis. See But I have noticed that this is the case if I include xlabel. If it is ...
2
votes
0answers
64 views

Get true limit of plot area of an Axes in matplotlib?

I'd like to find out the exact extents of the data inside a matplotlib Axes object; i.e., their highest and lowest x-values, and highest and lowest y-values. (My specific application only needs me to ...
0
votes
0answers
15 views

Way to adjust figure dimensions to automatically fit an axes to a patch object?

Ahoy Mateys! Is there a way to adjust figure dimensions to automatically fit an axes to a patch object? I have an axes that contains a bunch of patch objects that I'm trying to fit another axes' ...
0
votes
1answer
46 views

How to find the area below axes in pixel values

Is there a command that returns the coordinates of the area underneath the axes, in pixel units? Something like the findobj(gcf,'tag','axes1')? I need these coordinates so that I can place a slider ...
0
votes
1answer
153 views

Pandas Bar Plot and Labels in Subplots

df=pd.DataFrame(np.random.rand(10, 4), columns=['a', 'b', 'c', 'd']) x=[1,2,3,4,5] y=[1,4,9,16,25] fig, axes = plt.subplots(figsize=(8,8),nrows=2, ncols=2) ax1=plt.subplot(2,2,1) plt.plot(x,y) #ax2=...
0
votes
0answers
21 views

Add a graph plot to another one in matplotlib

How can make a sum of two plot from matplotlib axes class? For example I have an idea like this: >> fig, ax1 = plt.subplots() >> ax1.plot(x1, y1) >> fig, ax2 = plt.subplots() >&...
0
votes
0answers
82 views

Keras Dot Axes questions

I am trying to use Keras Dot and have the following errors. Could you explain what I am doing wrong? x1 = Input(shape=(2,4)) x2 = Input(shape=(4,)) y1 = dot([x1,x2], axes = (2,1)) modelA = Model(...
0
votes
1answer
83 views

Python plt.axis('Equal') xlim

I have a simple 3D surface plot in which I want the axes to be equal in all directions. I have the following piece of code: import numpy as np import matplotlib.pyplot as plt from mpl_toolkits....
1
vote
1answer
34 views

Scichart: how to activate or deactivate the axes range synchronization

It is possible to synchronize axes if you bind the VisibleRange of an Axis to a property of type IRange in the ViewModel. So if I have 2 charts I can bind them to the same IRange and they get ...
0
votes
1answer
31 views

subplots from one figure to have the same dimensions as subplots from other figure

The following code: import matplotlib.pyplot as plt fig, axes = plt.subplots(ncols=3, nrows=4, sharex='col', sharey=False,\ subplot_kw=dict(adjustable='box-forced'), figsize=(8, 8)) fig,...
1
vote
1answer
48 views

Javascript C3 chart generate shift chart

I'm using C3js chart to generate a shift chart as below: Here is the my data format: var dataItems = [ { "title": "2017/02/04", "shifts": [ { "startTime": "05:30:00", "endTime": "...
-1
votes
1answer
37 views

Enforcing xmin = ymin in a MATLAB plot

Without specifying any values, how can I write code that will align the plot axes such that the minimum axis value of either x or y (that MATLAB will choose automatically if unassigned) is now the ...
4
votes
2answers
51 views

Base R Bar Plot x-axis skewing

I'm writing a function to plot (what is termed in Excel, for example) "combo-charts" of a specific variety: namely bar + line graphs. Here is my code: plot_combo_chart <- function(df,bar_colour = "...
0
votes
1answer
23 views

How to do a update of the axis boundaries in SCILAB?

I'm working on a GUI. In the GUI, I have a graph, which shows me the results of a measurement file. If I want to plot another file, I delete the children of the axes and plot the new results. However,...
-1
votes
1answer
41 views

Difficulty in understanding matplotlib axes

I've following data year array([1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, ...
0
votes
0answers
131 views

Sharing x-axis in matplotlib and “Axes that are not compatible with tight_layout”

I'd like to making a 3 row, 1 column plot in Matplotlib, but one where the x-axes are shared and there are no gaps between the subplots. plt.rcParams.update({'font.size': 14}) fig, (ax1, ax2, ax3) = ...
4
votes
2answers
52 views

How to force same size between matplotlib subplot image axes

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) ...
0
votes
1answer
40 views

Selection Histogram Axis Data Update

I created, using bokeh, a selection histogram that contains a central scatter plot and histograms as the axes. I also have a legend that displays the names of the groups of scatter data that, when ...
0
votes
1answer
22 views

How to amend existing axes on a plot in R?

I'm editing a plot. I am making mistakes with axes formatting and want to fix them. However, if I write a right code after the wrong one, the new axes are added on top of existing axes, not replacing ...
0
votes
1answer
31 views

aligning axes of different plots in matplotlib

I am trying to align these plots so the x axis of the top plot perfectly aligns with the x axis values of the imshow. I'm able to do this by setting the aspect to auto, but then my image is warped. is ...
0
votes
2answers
39 views

make all right and left y-axis limits the same, respectively, for multiple subplots in figure

I have a subplot that appears as follows: This is created as follows: fig = figure; nPlots = 3; for p = 1:nPlots ax(p) = subplot(1, nPlots, p); x = 0:10*p; y1 = max(x)-x.^1.1; y2 = p*max(x)-...
0
votes
1answer
135 views

Omit axes with facet_grid - plotnine

import pandas as pd from plotnine import * df=pd.DataFrame({'A':[1,1,1,1],'B':[1,9,5,11],'C':['x','x','y','y'],'D':['a','b','a','b']}) p=ggplot(df,aes('A','B')) p + geom_bar(stat="identity") + ...
0
votes
1answer
51 views

How to put histogram with ggplot in the beginning of axes (0,0)?

I want to create a histogram, but I have problems with putting it in the beginning of axes (0,0). Currently it is shifted in the right which looks not good. I expected expand_limits(x = 0, y = 0) to ...
0
votes
1answer
64 views

Writing axes to FITS file

Is there a way to write existing xy axes to a FITS file along with the data itself in Python? For example here is some simple code saving a matrix to a FITS file named TestFITS: import numpy as np ...
0
votes
0answers
48 views

How can I change the default x-axis title in love.plot of cobalt package in R?

I would like to ask a simple question that I cannot find out the answer for. How can I change the default x-axis title in love.plot() ? I made several codes of ggplot2 that could be used for the same ...
0
votes
0answers
36 views

import Axes3D: DLL load failed: %1 is not a valid Win32 application

So when I am trying to plot a 3d graph, I get import Axes3D: DLL load failed: %1 is not a valid Win32 application. I am using Python 2.7 32 bit. I think that MATPLOTLIB is 64 bit and I cannot find ...
3
votes
2answers
74 views

Change the order of y-axis values

I'm using the ggplot package from R, I did this plot with this code : p3 = data.frame(cbind(c(1:70), c("G1" , "G2" , "G1" , "G1" , "G1" , "G2" , "G1" , "G1" , "G1" , "...