Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
41 views

Julia 1.11.7 (Also tried in 1.10.1) on Linux. Plots v1.41.1 using Plots; gr() titles = hcat(["X "*string(x) for x in collect(15:-1:8)'], ["X "*string(x) for x in collect(0:7)']) ...
Jen-Feng Hsu's user avatar
0 votes
1 answer
55 views

I have the following code snippet, which produces 3 subplots: 2 on the same row side by side, for the logo and title 1 below that will include various texts. # ---- RIGHT COLUMN: 6 rows ---- ...
stbr2's user avatar
  • 1
0 votes
1 answer
150 views

It seems accessing axis is easy with fig, ((ax1, ax2,ax3,ax4)) = plt.subplots(2, 4,figsize=(10,8),layout='tight') subfigs = fig.subfigures(2, 4) For example, if I want the ticks (labeling too) on the ...
Spin's user avatar
  • 1
2 votes
1 answer
171 views

I have a row of subplots which start with a histogram and the rest are some qqplots: I removed the y axis and ticks labels using for ax in axqq[1:]: ax.set_ylabel(None) ax....
sds's user avatar
  • 60.5k
1 vote
1 answer
155 views

I am trying to create a figure with three subplots. The bottom left subplot is supposed to be a 2D histogram with projections on the top and right sides. The 2D histogram is supposed to be square (...
Raphael_Ratz's user avatar
2 votes
2 answers
82 views

I would like to create three figures showing how a quantity varies with z in three different simulations. The different simulations have different domains, the first extends from z=0 to 1.4, the next ...
AceTorterra1's user avatar
0 votes
1 answer
71 views

I'm trying to vizualize simulation results with a figure containing 2 subplots using matplotlib pyplot. Both should contain animation: one uses netgraph library (it's a graph with nodes showing flows ...
carpediem's user avatar
  • 491
0 votes
1 answer
106 views

I have 2 dataframes as follows: df1.to_dict() results in {'Peak Demand PES': {2023: 124126.91, 2025: 154803.41, 2030: 231494.66, 2040: 483217.66000000003, 2050: 1004207.86}, 'Peak Demand TES':...
hbstha123's user avatar
  • 1,810
0 votes
2 answers
62 views

I am trying to make a plot where I just want some distance between the first and second set of plots. Basically when you plot below, you can see the y-axis values off ax5 and ax7 there that is where I ...
James Lane's user avatar
0 votes
1 answer
136 views

I have 3 data sets: height, data1 and data2, where all are different and I want to plot height vs data1 and height vs data2 as a (1,2) subplot using pcolormesh and have them share a colorbar. The ...
user29988411's user avatar
1 vote
1 answer
59 views

I've been dealing with Python for the last few months and it still a little bit irritate me :) But hope someone can explain how to plot some subplots from dataframe grouped by 2 columns using ...
Nakira 's user avatar
0 votes
2 answers
126 views

I have a plot with 3 subplots: the top plot is larger than the two subsequent plots. They all share the same x- and y-axis. However, the ylabel is rather long, so the ylabels of the two bottom plots ...
Niklas Netter's user avatar
0 votes
1 answer
50 views

I am trying to create a secondary axis for my plot. I can get all of my lines to plot on the graph (y1 to y14) and all y values are in the same units. The conversion to a secondary unit is essentially ...
Kray's user avatar
  • 51
0 votes
1 answer
59 views

I would like to release such configuration of plots as it presented on the picture: The next parameters have to be variable: Position of subplot origin point Rotation angle of subplot Size of ...
EGOR_MIPT's user avatar
0 votes
1 answer
44 views

I have a large dataframe that I need to make and annotate subplots from, see below. Everything seems ok, I still have some work to do on the x and y ticks but otherwise it seems pretty right, except, ...
Greg Gollaher's user avatar
0 votes
1 answer
48 views

I am creating a bar chart with the following code. I am getting the text I need but the format is incorrect, due is overlap with the titles and part of the first subplot. Could you please tell me how ...
El-VeRdUgO's user avatar
0 votes
1 answer
37 views

I have created a 2 plot subplot. Selecting the range in both subplots works fine. Clicking into the upper subplot (the zoomed plot) shifts both views fine, but when clicking in the lower (total view) ...
GvTT's user avatar
  • 13
2 votes
1 answer
50 views

I'm using a python code to plot 3D surface. However, the z-axis label get cut by the figure. Here is the code : import matplotlib.pyplot as plt import numpy as np fig = plt.figure(figsize=(12, 10), ...
user28754841's user avatar
0 votes
1 answer
147 views

I want to create a plot with 2 columns, with the 1st one has only 1 plot and the 2nd one has 3. I try to set it up by using the following code import matplotlib.pyplot as plt def format_axes(fig): ...
bored af's user avatar
0 votes
1 answer
59 views

I am plotting two figures in Plotly using this code: d = {'1': pd.DataFrame({'x': [1,2,3], 'y': [2,4,6]}), '2': pd.DataFrame({'x': [2,4,6], 'y': [4,6,8]})} def p1(df, n): x = df.x.tolist() y = ...
TylerD's user avatar
  • 469
0 votes
0 answers
66 views

I Have an error when I try to run this code import pandas as pd import numpy as np import seaborn as sns %matplotlib inline import matplotlib.pyplot as plt from matplotlib.cm import ScalarMappable ...
lokalhangatt's user avatar
0 votes
1 answer
80 views

I have two different functions, each producing a plot. list_soal = ['SalePrice', 'GrLivArea', 'GarageArea'] # fig,ax = plt.subplots(1, 3, sharey=True, figsize=(14,4)) def function1(ax): for i in ...
lokalhangatt's user avatar
0 votes
1 answer
88 views

Using this code to create and save a subplot automatically (in a for loop) is not working and throwing up an error I don't understand: clear clc close all %---------------------------- x1 = 1:0.01:3; ...
user2587726's user avatar
1 vote
1 answer
127 views

A minimal version of my problem is the following plot. How do I scale the right panel to have the same height as the left one? import matplotlib.pyplot as plt import numpy as np rnd = np.random....
divenex's user avatar
  • 17.7k
0 votes
2 answers
107 views

I’m trying to display three images of different sizes side-by-side using Matplotlib. I want each subplot to maintain the original size of the images without auto scaling them to be the same size. ...
Max H's user avatar
  • 3
3 votes
1 answer
60 views

I want to plot a figure in pyplot that has 3 subplots, arranged vertically. The aspect ratios of the first one is 1:1, while for the other two it is 2:1. And the heights of each of these plots should ...
YeatTheorem's user avatar
1 vote
1 answer
64 views

Hi i have a dataframe called metrics which has 2 rows × 31 columns. I am plotting a graph using this: unit_ids = sorting_rec.unit_ids plt.figure(figsize=(12, 8)) sw.plot_unit_templates(we, unit_ids=...
Kshtj's user avatar
  • 109
0 votes
1 answer
95 views

I'm using InsetPosition and mark_inset to make a subplot so that I have the lines connecting them. However, I can't get the lines to be on top of the legend in the first plot. Any thoughts on how I ...
Steven Thomas's user avatar
0 votes
0 answers
87 views

Is there a way to change the vertical/horizontal spacing between subplots in an existing figure? I couldn't find anything in the docs or user forum, and the following throws a Bad property error: ...
Jon Nir's user avatar
  • 593
0 votes
1 answer
49 views

What is an efficient way to assign the same specs (for example, xlim) to matplotlib unpacked subplots? I have fig, (axs1, axs2,axs3) = plt.subplots(3, sharex=True, figsize=(10,6), gridspec_kw={'...
Py-ser's user avatar
  • 2,182
0 votes
1 answer
42 views

I am creating a 6 panel subplot with each plot showing a different time step for my data. I am having trouble creating a loop that plots each time into one of the panels. I have been able to produce ...
franke11's user avatar
1 vote
0 answers
94 views

The issue is that fig.suptitle and ax.imshow (with wide images) do not work well together. I understand that there are some aspect ratio (or something) hurdles to overcome due to the image being wide ...
Yolkions's user avatar
  • 111
0 votes
1 answer
78 views

I have a lot of data with categorical variables that has a lot of levels. This gives me some difficulty plotting them, especially when I put them into Rmarkdown. I am trying to figure out how to best ...
EnFiFa's user avatar
  • 65
1 vote
0 answers
165 views

I have two dataframes from which I want to create a figure with two plots. The first corresponds to the daily temperature and the average temperature for each month. The second subplot shows the width ...
toms's user avatar
  • 123
2 votes
2 answers
84 views

I have made a subplot in matplotlib and managed to to put the different cmap I have on the same column. For a minimal working example (with dummy cmaps): import matplotlib.pyplot as plt import numpy ...
Chris Ze Third's user avatar
0 votes
1 answer
44 views

I would like to plot positive and negative word charts for each category together on the same grid. To achieve that, I'm using plt.subplot(). I'm using for loop to plot graphs for all the categories. ...
Anna Gromovich's user avatar
1 vote
0 answers
52 views

I am having trouble using the sharex=True when I create two graphs with seaborn that should share the same horizontal axis. I have my example hereafter and even with sharex=False I get a warning that ...
Newbielp's user avatar
  • 532
0 votes
0 answers
71 views

I am encountering issues with my plotting code when running it as a Python script in PyCharm. The plots overlap, and the legends are not displayed, which does not happen when I run the same code in a ...
JuanMuñoz's user avatar
1 vote
1 answer
617 views

Hi i would like to Show side by side diagrams from SHAP Library: Waterfall Diagram :API Reference https://shap.readthedocs.io/en/latest/generated/shap.plots.waterfall.html#shap.plots.waterfall Bar ...
Jack's user avatar
  • 13
1 vote
0 answers
22 views

I want to have a master plot, and various subplots that will be plotted at specific locations on the master plot coordinate system. The y coordinates should be matching and the x of the subplots is ...
user24901980's user avatar
1 vote
1 answer
55 views

I'm trying to optimize example (https://matplotlib.org/stable/gallery/widgets/check_buttons.html) for my task in a small project. I have an example that works: from PyQt5.QtWidgets import QApplication ...
Ilya Belov's user avatar
1 vote
1 answer
53 views

I create the next function to plotting barplotd and I want to use this function to make subplots, but when I try it I don't get the result I expect: import numpy as np import pandas as pd import ...
danny's user avatar
  • 67
0 votes
0 answers
37 views

Can someone tell me what I need to do to change the padding within the boundary of a subplot in Julia? Just need to know how to make the border larger so the 8 doesn't overlap for example in this mwe: ...
sarl's user avatar
  • 23
0 votes
0 answers
56 views

This is the first question I am writing, sorry if something is not correct. I'am trying to plot several subplots in same figure: They can't be plotted in a squared grid because each row rapresent a ...
Gregorio Casagrande's user avatar
-2 votes
2 answers
67 views

When trying to plot the following code I got 4 graphs but the percentage shows in only in the last graph. fig, axes =plt.subplots(12,2,figsize=(12,50)) plt.subplots_adjust(wspace=0.9, hspace=0.9) i=0 ...
Manish Patel's user avatar
1 vote
2 answers
546 views

I am making multiple plots based on the same data source, the markers on each plot represent the same set of samples. If my data is in a table or dataframe, the different plots may use different ...
K L's user avatar
  • 26
2 votes
1 answer
523 views

How do I remove the gaps between the subplots on a mosaic? The traditional way does not work with mosaics: plt.subplots_adjust(wspace=0, hspace=0) I also tried using gridspec_kw, but no luck. import ...
ruthpozuelo's user avatar
0 votes
0 answers
59 views

Assume we're using the plotly px.data.iris() dataset to generate a stacked bar chart. This is pretty straight-forward using plotly express: import plotly.express as px df = px.data.iris() df = df[[&...
Tall_Joe's user avatar
  • 199
0 votes
1 answer
1k views

How is it possible to manipulate the spacing between rows(e.g. increasing the space between fist two rows and final two rows) and the size of charts inside the figure (e.g. making pie chart bigger)? ...
Tohid's user avatar
  • 632
1 vote
1 answer
365 views

I want to combine two charts prepared with Plotly and ggplot2 into one PDF. Below, you can see the code for the preparation of the charts: library(ggplot2) library(plotly) library(dplyr) library(...
silent_hunter's user avatar

1
2 3 4 5
41