Skip to main content

NameError: name 'aspect_ratio' is not defined

  • April 26, 2024
  • 3 replies
  • 127 views

Hi all

NameError Traceback (most recent call last)
in
1 # Draw the RGB image
2 path_out = ‘./eopatches_small/’ if use_smaller_patches else ‘./eopatches_large/’
----> 3 fig = plt.figure(figsize=(20, 20 * aspect_ratio))
4
5 pbar = tqdm(total=9)

NameError: name ‘aspect_ratio’ is not defined

I am getting this error…can anyone please help me…many Thanks in advance

3 replies

solved it…it was internal error


Hello,

when I try to Draw RGB Image I am getting the same error?

NameError: name ‘aspect_ratio’ is not defined

Thanks


@Niraj, Ihave the same problem “NameError: name ‘aspect_ratio’ is not defined” can you tell me how you solved it.
thanks