2,033 questions
3
votes
1
answer
35
views
Julia suplot with gr() widths not uniform
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)'])
...
0
votes
1
answer
149
views
how can I access particular y and x axis using ax = fig.add_subplot(3, 3, i +1), for a loop on i?
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 ...
1
vote
1
answer
146
views
Subplot spacing with scaleanchor and constrain in plotly
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 (...
0
votes
1
answer
71
views
Matplotlib figure with 2 animation subplots: how to update both [closed]
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 ...
0
votes
2
answers
56
views
Plot with 8 subplots where 4x4 with horizontal space
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 ...
1
vote
1
answer
58
views
To plot variable number of plots with variable number of graphs from Pandas grouped by some columns
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 ...
0
votes
1
answer
50
views
How do I create a secondary axis based on on a complex conversion?
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 ...
0
votes
1
answer
43
views
Annotate each subplot from a list
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, ...
0
votes
1
answer
35
views
Move Span center to click position not showing range when clicking in subplot with shown range
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) ...
0
votes
1
answer
144
views
How to create single column 3x1 plot in a 3x2 subplot?
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):
...
0
votes
0
answers
62
views
Plotting Central Tendencies (Mean, Median, Mode) into Seaborn Subplots
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
...
0
votes
1
answer
88
views
How to save a subplot in for loop?
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;
...
0
votes
2
answers
100
views
How can I prevent Matplotlib from autoscaling images to the same size in subplots?
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.
...
1
vote
1
answer
57
views
How to plot dataframe as a table along side a graph?
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=...
0
votes
0
answers
85
views
Update spacing between Plotly subplots
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:
...
0
votes
1
answer
42
views
Populate Subplots by looping through time
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 ...
0
votes
1
answer
70
views
R: Combine subplots into one organism using ggplot and plotly
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 ...
2
votes
2
answers
84
views
Tight subplot axes without their plot to the figure
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 ...
1
vote
0
answers
51
views
Unexpected behaviour in seaborn subplots when the x axis is being shared [duplicate]
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 ...
1
vote
1
answer
613
views
SHAP Waterfall diagram as a matplotlib subplot?
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 ...
1
vote
1
answer
48
views
Interactive checkboxes (or buttons) in subplots Matplotlib figure in QGraphicsView PyQt5
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
...
0
votes
0
answers
36
views
Adding padding within a subplot
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:
...
-2
votes
2
answers
67
views
How to show percentage in each plot? [closed]
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
...
2
votes
1
answer
510
views
Remove gaps between subplots_mosaic in matplotlib
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 ...
0
votes
1
answer
1k
views
How to change the size and spacing of Plotly's sublopts?
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)?
...