Python Forum
first time use plot - I get empty graph
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
first time use plot - I get empty graph
#6
how can I do this?
Quote:how do I Plot the entire list with one call to plot() ?

import matplotlib.pyplot as plt

def GetDataFunction()
   t= 0
   while t <250:
       Speed = GetData()
       print(f"Speed: {Speed} Km/h ")
       plt.plot(t, float(Speed))
       t += 1
 
GetDataFunction()
 
plt.show()
Thanks ,
Reply


Messages In This Thread
RE: first time use plot - I get empty graph - by korenron - Feb-01-2023, 01:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to plot the graph as needed drunkenneo 1 6,536 May-26-2021, 11:04 AM
Last Post: cygnus_X1
  How to plot 3D graph of non numerical value? Gevni 0 2,284 Mar-05-2021, 02:50 PM
Last Post: Gevni
  Python Matplotlib: How do I plot lines with different end point in the same graph? JaneTan 0 1,637 Feb-28-2021, 11:56 AM
Last Post: JaneTan
  Plot Graph quest_ 2 2,215 Jan-18-2021, 07:58 PM
Last Post: quest_
  How to plot intraday data of several days in one plot mistermister 3 3,014 Dec-15-2020, 07:43 PM
Last Post: deanhystad
  Bode plot from time series experiment data discus 4 7,559 Jun-20-2020, 07:46 AM
Last Post: discus
  plot multiple employee sales data in a single graph pitanshu 0 1,958 Oct-24-2019, 01:56 PM
Last Post: pitanshu
  Plot multiple csv into one graph problem with visualize linkxxx86 1 5,795 Oct-14-2019, 05:54 PM
Last Post: linkxxx86
  Real time graph of the temperatures and storage linkxxx 3 2,794 Aug-29-2019, 09:44 AM
Last Post: linkxxx
  How to plot vertically stacked plot with same x-axis and SriMekala 0 1,985 Jun-12-2019, 03:31 PM
Last Post: SriMekala

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020