Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
75 views

Data Visualization -Incorrect Data

I have a CSV file with data that I'm trying to compile into some type of graph. I managed to get one beautiful heatmap thanks to Google Colab's "recommended plots" generator, but all other ...
K13's user avatar
  • 11
0 votes
0 answers
45 views

Interactive plotting %matplotlib notebook in Google Colabs

It is June 2024 and I would like to know whether Google Colab supports interactive plotting using matplotlib? I ran !pip install PyQt5 and I get the following error when I run %matplotlib notebook in ...
codingknob's user avatar
  • 11.5k
1 vote
0 answers
123 views

How to use Arial on matplotlib via Google Colab?

For context: some scientific journals demand the fonts of our graphs to be Arial, and since I use google colab to plot absolutely everything, I need to find a way to change my font to Arial globally. ...
Gabriel Fontenele's user avatar
-1 votes
1 answer
393 views

ValueError: Image size of 2000x100000 pixels is too large. It must be less than 2^16 in each direction [duplicate]

I am trying to plot 5000 images of dataset (pictures of cats and dogs) for an image classification. I am using google colab and even when I tried using pycharm it also shows the same error. I am using ...
Fakhrul's user avatar
1 vote
1 answer
33 views

why importing tensorflow_models interrupt matplotlib in colab?

Running import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.show() plots the plot with no problem, but import tensorflow_models import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.show() ...
J. Doe's user avatar
  • 43
0 votes
1 answer
60 views

Matplotlib is plotting non-existent data in google colab

I am running the seasonal decomposition tool from statsmodels on a large time series. The decomposition tool is returning arrays full of nan's, yet matplotlib is able to plot the non-existent data. ...
Dan S's user avatar
  • 1
0 votes
0 answers
84 views

Google Colab: On-click interactive plots not working

I'm trying to use this snippet, which works as intended locally, in Google Colab. The snippet basically set to NaN a pixel value on click. Google Colab does show correctly the image but if I click on ...
Enki's user avatar
  • 1
0 votes
2 answers
508 views

`%%capture` jupyter notebook or colab doesn't work for storing cell output that display image or table pandas

I have read docs about %%capture cap. It only work for text representation. I expect it stored everything what has been displayed into cell output; image, table, even html element. And then I can load ...
Muhammad Ikhwan Perwira's user avatar
0 votes
0 answers
60 views

Getting blank image when viewing MRI scan images from a dataset

I am trying to view MRI scan images from kits23 dataset on Google Colab, but instead I get blank images. The path is valid and I am using nibable library to view .nii images. I don't know what the ...
pranavi mehta's user avatar
0 votes
0 answers
37 views

I lose resolution when displaying an image in a coordinated system

I have used various libraries to processs images: IPython.display: from IPython.display import Image as Im Im(path, width = 400, height = 400) cv2: import cv2 from google.colab.patches import ...
Francesco Luligo's user avatar
0 votes
0 answers
225 views

Fix TypeError when creating a bar chart and count plot using pandas, matplotlib, and seaborn?

How to fix the TypeError in the following code using pandas, matplotlib, and seaborn libraries to create a bar chart and count plot for the 'Sex' and 'Survived' columns of the DataFrame df_train? ...
Aidan's user avatar
  • 1
0 votes
0 answers
157 views

How to center-align a plot in a Jupyter cell

I have the following plot in Jupyter Notebook, which by default is aligned to the left: import matplotlib.pyplot as plt import numpy as np x = np.array([1.320, 1.127, 0.997, 0.800, 0.587, 0.441, 0....
Tim Hulland's user avatar
0 votes
1 answer
45 views

Why is my budgeter's pie chart not working correctly?

I am trying to create a pie chart but it is not working. Instead, I am getting the error shown below my code. import matplotlib.pyplot as plt import numpy as np inputted_payment = input("Type in ...
MiniSkoot32's user avatar
0 votes
0 answers
88 views

In google colab with matplotlib, inline output is different from image download

In google colab with matplotlib, inline output is different from image download. It seems like the inline backend always uses an autolayout feature even though no tight or constrained layout is ...
3P_Voltage's user avatar
-1 votes
2 answers
538 views

Colab environment does not show input after a call to plt.show()

I am currently writing a colab notebook in which I need to iteratively open an image, give a vote to it, using an input() function, and then clearing the output and processing the next image. The code ...
Andrea Marino's user avatar

15 30 50 per page
1
2 3 4 5
9