figure Questions
3
Solved
I have a figure consisting of 3 subplots. I would like to locate the last subplot in the middle of the second row. Currently it is located in the left bottom of the figure. How do I do this? I cann...
5
After installing Anaconda3 & PyCharm in new PC, I tried to test the same code as uploaded here
And I got a window like this.
But usually I use the plot window like this format (from google ...
Excerpt asked 19/1, 2018 at 5:47
7
Solved
I need to add two subplots to a figure. One subplot needs to be about three times as wide as the second (same height). I accomplished this using GridSpec and the colspan argument but I would like t...
Oratory asked 30/4, 2012 at 18:9
2
Solved
I'm playing around with an example script that shows how to switch back and forth between figures. I found the example here: http://matplotlib.org/examples/pylab_examples/multiple_figs_demo.html Wh...
Lussi asked 19/2, 2017 at 2:27
4
Solved
I am trying to adjust the piechart figure in my Rmarkdown document so that it spans the width of the page or at least becomes wide enough to fit all of the labels.
I have tried everything - adjust...
Borg asked 3/4, 2017 at 23:21
5
Solved
I want to show the text for a line's label in the legend, but not a line too (As shown in the figure below):
I have tried to minimise the legend's line and label, and overwrite only the new-labe...
Degreeday asked 4/8, 2014 at 16:17
6
Solved
How do I increase the figure size for this figure?
This does nothing:
f.figsize(15, 15)
Example code from the link:
import matplotlib.pyplot as plt
import numpy as np
# Simple data to display in ...
Lunetta asked 8/2, 2013 at 10:41
3
Solved
Given the following html:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
</head>
<body>
<h2>Head...
3
Solved
I often find myself using code blocks for inline article images like the following:
...article text.
<div class="article-image right" style="width: 250px;">
<img src="..." width="250" al...
2
Solved
I am using the PyPlot package in Julia to generate and save several figures. My current approach is to display the figure and then save it using savefig.
using PyPlot
a = rand(50,40)
imshow(a)
sav...
Protozoal asked 18/9, 2016 at 20:44
2
Solved
I'm having a problem with an image and some text. I have this code:
Some text...\\
\begin{figure}[ht]
\centering
\includegraphics[scale=0.75]{picture.jpg}
\caption{The caption}
\label{fig:pictur...
Altricial asked 13/5, 2010 at 15:21
8
Solved
I have two images that I want to display on a page as figures. Each eats up little less than half of the space available so there's not much room for any other stuff on that page, but I know there ...
8
Solved
I am trying to plot two separate quantities on the same graph using twiny as follows:
fig = figure()
ax = fig.add_subplot(111)
ax.plot(T, r, 'b-', T, R, 'r-', T, r_geo, 'g-')
ax.set_yscale('log')
...
Romona asked 5/10, 2012 at 16:26
4
Solved
I have the following matplotlib code which all it does is plots 0-20 on the x-axis vs 0-100 on the y-axis
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(range...
Lesko asked 27/3, 2016 at 21:11
3
Solved
I'm having trouble with matplotlib insisting on displaying a figure wnidow even when I haven't called show().
The function in question is:
def make_plot(df):
fig, axes = plt.subplots(3, 1, figsi...
Paul asked 17/11, 2014 at 9:59
3
Solved
I am having problem in placing the figure at the bottom of page in latex. When I specify the \begin{figure*}[b], all the figures in my documents goes at the end of document. What I need is just pla...
7
I am using matplotlib (within pylab) to display figures. And I want to save them in .jpg format. When I simply use the savefig command with jpg extension this returns :
ValueError: Format "jpg" is...
Keegan asked 11/1, 2012 at 21:36
0
In visual studio python code, I am trying to create a heatmap for my data features. The feature name is sometimes long, and this causes the label on the x-axis to be partially visible sometimes (bu...
Theran asked 17/4, 2022 at 23:43
1
Let's take a simple example:
import plotly.express as px
x = ['A', 'B']
y = [10, 20]
fig = px.bar(x=x, y=y, color=x)
fig.update_layout(autosize=False, width=300, height=300, showlegend=True)
fig.sh...
Denumerable asked 2/3, 2022 at 9:35
3
Solved
I'm trying to write a python program that displays a figure for indefinite time and closes it after any keyboard key is pressed.
In fact, the python program should do the same as this Matlab code:...
Lewis asked 6/4, 2014 at 20:38
4
I have created a figure in matplotlib which contains three subplots, one in the top left quadrant, one in the top right quadrant, and one in the bottom right quadrant. The top right figure contains...
Kellyekellyn asked 20/3, 2014 at 17:14
8
I've looked in different questions for a solution and I've tried what was suggested but I have not found a solution to make it work.
Everytime I want to run this code it always says:
Error in ...
4
Solved
I'm trying to create a figure that consists of a 2x2 grid, where in each quadrant there are 2 vertically stacked subplots (i.e. a 2x1 grid). I can't seem to figure out how to achieve this, though. ...
Cedilla asked 21/1, 2016 at 20:42
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
1
I'd like to edit the data, probably adding more traces to the graph.
I've found a way to display the html file as a graph, but not to edit it.
from IPython.display import HTML
HTML(filename='file_n...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.