Matplotlib Tutorial 16 - Live graphs

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

ความคิดเห็น • 273

  • @fireraisr
    @fireraisr 9 ปีที่แล้ว +26

    I'm really loving all your videos. The speed is awesome. I don't mind pausing to read the code in some places because it means we blaze past the concepts I'm already familiar with. Great series.

    • @sentdex
      @sentdex  9 ปีที่แล้ว +9

      fireraisr Great to hear! Also, if you find yourself having trouble reading any of the code, each tutorial is also posted here: pythonprogramming.net/dashboard/#tab_dataanalysis under the data visualization tab.

  • @Jimming854
    @Jimming854 3 ปีที่แล้ว +1

    building a chatbot that displays data to the host and came across this when looking to visualize the data it collects. Excellent explanation! I really appreciate you going into detail for each component to explain *why* it gets added to the code. Thanks!

  • @happyhippr
    @happyhippr 7 ปีที่แล้ว +1

    its awesome to have an expert explain the simple stuff. cant thank you enough for the time you put into this series

  • @ralphcastro2005
    @ralphcastro2005 7 ปีที่แล้ว +3

    Interesting videos you publish. I have been following you as I go through my quest in learning python. You always give a good point of view slightly different of what I have found on other tutorials.
    Today I make a comment cause I was just seeing this tutorial of live plotting and I saw that with my data I saw that my x-axis the data was not taken in ascending order instead was (1,10,2,3,4...) when you passed to the 2 digit number.
    What I did is that I just added the int() to each append of the "xs" and "ys" and this solved the issue.
    Thanks again for your videos dude.

    • @SamTehSquirrel
      @SamTehSquirrel 7 ปีที่แล้ว

      Rafael Lainez I had that same problem and was just about to ask it when I saw your solution, and it worked. Thank you so much!

    • @ralphcastro2005
      @ralphcastro2005 7 ปีที่แล้ว

      No worries man, have a cool day learning more and more on python.

    • @AB-qo3vh
      @AB-qo3vh 7 ปีที่แล้ว +1

      Hey thanks a bunch

  • @saadahmed9239
    @saadahmed9239 7 ปีที่แล้ว

    Never thought this would be so easy! Thanks Harrison. Even though every now and then some idiotic...xd ... error pops up because of my own shortcomings but no worries I think these things happen when you are on a learning curve. Thanks again.

  • @BrowFinGarf
    @BrowFinGarf 7 ปีที่แล้ว

    You really make this stuff understandable. Reading documentation can get pretty daunting. Thanks!

  • @damlurker
    @damlurker 6 ปีที่แล้ว +2

    loading data from a sensor is exactly what i need this for :)

  • @davidkaplan3105
    @davidkaplan3105 7 ปีที่แล้ว +88

    I was having a weird issue where the Y axis wasn't numbered in order. I changed the code to xs.append(float(x)) and ys.append(float(y)). This seemed to fix the issue.

    • @acambarestito
      @acambarestito 7 ปีที่แล้ว

      Worked on me, thanks

    • @irnakk29
      @irnakk29 7 ปีที่แล้ว +1

      Thank you I had the same problem

    • @gizatsby
      @gizatsby 7 ปีที่แล้ว

      there we go. thanks.

    • @Dara-kl1fu
      @Dara-kl1fu 6 ปีที่แล้ว

      Thank you. I had the same problem also.

    • @mozarter86
      @mozarter86 6 ปีที่แล้ว

      thanks! is this problem caused by the different of Matplotlib version?

  • @MarhabanBek
    @MarhabanBek 5 ปีที่แล้ว +8

    God bless you, You are great , Thank you very much for simplifying this

  • @vikramtheone
    @vikramtheone 8 ปีที่แล้ว +2

    I love the way you explain. Thank you for a great a tutorial.

  • @tranxuananhtranxuananh8977
    @tranxuananhtranxuananh8977 4 ปีที่แล้ว

    Thank sentdex for awesome teaching

  • @sriti_hikari
    @sriti_hikari 7 ปีที่แล้ว +6

    Now that is what I call a real "INFLUENCER"

  • @vampcj1944
    @vampcj1944 5 ปีที่แล้ว +4

    For those of you guys who have the problem of no updating fig with txt file. Just remember to have '%matplotlib notebook' at the very beginning of the jupyter notebook file, before 'import matplotlib.pyplot as plt'

  • @BentoMontenegro
    @BentoMontenegro 6 ปีที่แล้ว

    Really, really clear. Best material on the subject! Thank you!

  • @sis2645
    @sis2645 7 ปีที่แล้ว

    what a simple and clear explanation!!
    thanks a lot. it was very helpful!

  • @rogerwilcoshirley2270
    @rogerwilcoshirley2270 4 ปีที่แล้ว

    very nice, simple basic but very useful.

  • @arshshah1871
    @arshshah1871 4 ปีที่แล้ว

    Sentdex. You are awesome. Thanks

  • @loudborker63
    @loudborker63 4 ปีที่แล้ว +6

    5:04 where does the variable "i" get called in the def animate (i): function?

    • @markd964
      @markd964 4 ปีที่แล้ว +3

      I think the interval, i, (here set to 1000 millisecs) is an arg value passed to the FuncAnimation method, it is not explicitly called by the user-defined function 'animate'. So the animate.FuncAnimation function is actioned every 1000ms, and on action, runs the user-defined function 'animate', which accesses the data and draws the graph

    • @HRoy-ot7hy
      @HRoy-ot7hy 4 ปีที่แล้ว +1

      i comes from a fast copy paste from here matplotlib.org/3.1.1/gallery/animation/simple_anim.html

    • @TXfoxie
      @TXfoxie 4 ปีที่แล้ว +1

      That's also the same question I had even though Sentdex explained it is parameter i for interval. I was just not sure if two parameters "interval" means the same, which means this parameter 'interval" is connecting two functions together.

    • @TXfoxie
      @TXfoxie 4 ปีที่แล้ว +1

      @@HRoy-ot7hy Thank you. It helps a lot to understand what we are doing here.

  • @chanukagayantha
    @chanukagayantha 6 ปีที่แล้ว

    Very useful video. Clearly explained. Thank you

  • @josealb2
    @josealb2 6 ปีที่แล้ว +3

    For those like me who couldn't find it, here is the direct link to the explanation and code pythonprogramming.net/live-graphs-matplotlib-tutorial/

  • @ThomsonVarghese22
    @ThomsonVarghese22 7 ปีที่แล้ว +1

    This is excellent! Exactly what I was looking for to display live data from a DAQ system. The only question I have is the use of append. I am worried to use around as my csv files will have 1000s of lines of data and I have heard that appending could cause memory problems. Thinking I will initialize xs and ys = [0] x len(lines)

  • @markd964
    @markd964 6 ปีที่แล้ว +5

    hi - running this in jupyter notebook, the plot does not live update when the example data file is added to. i need to manually re-run the code to re-plot the chart which then shows the new points in the example data file. How to automate?

    • @rohitborra2507
      @rohitborra2507 4 ปีที่แล้ว +1

      same problem did u find any way ??

    • @markd964
      @markd964 4 ปีที่แล้ว

      @@rohitborra2507 Sorry Rohit, I cannot find my solution. Please check out pythonprogramming.net for the code

  • @meins2966
    @meins2966 7 ปีที่แล้ว +2

    Hi! Thanks for your great tutorials!
    Is it possible to start and stop the animation function, by pressing a button for example?

  • @endalee5920
    @endalee5920 7 ปีที่แล้ว

    Great Tutorial, thanks Sentdex

  • @shanmuganathanca245
    @shanmuganathanca245 6 ปีที่แล้ว

    Excellent
    This will help plotting my sensor data
    Thanks!!!!

  • @piccininsouza
    @piccininsouza 7 ปีที่แล้ว +2

    Nice, that's really help me alot. Very thankyou!

    • @sentdex
      @sentdex  7 ปีที่แล้ว

      Happy to share!

  • @rangeryeh6054
    @rangeryeh6054 7 ปีที่แล้ว

    Great! Big fan here! A small advice here: I tried the way to read files and read lines following this episode, but the .append() methods would resulted in 'the only additional stores in both xs[ ] and ys[ ], and the figure could only add more elements upon the history rather than clear the xs[ ] and ys[ ], what if we want to delete some data from the original sheet and display lively? Then, I tried the 'numpy' methods in your last episode, it works ( add, delete, modify, the outcome is a totally new figure)! :) Thanks

  • @PhyZack
    @PhyZack 6 ปีที่แล้ว +3

    MAAAANNNN IT SAVED ME A LOT OF TIME!!!!
    I F*CKING LOVE YOU!
    THHAAAANNNNKKS

  • @cosmosmusic9979
    @cosmosmusic9979 6 ปีที่แล้ว +3

    i have 1 problemwith this if i wanted to plot a continuous stream of data this doesnt really work

  • @Diego4322237
    @Diego4322237 8 ปีที่แล้ว +1

    Excelente vídeo amigo. muchas gracias!!!

  • @timjx3675
    @timjx3675 3 ปีที่แล้ว

    Ultra useful dude thx 👍😀

  • @ManuelRamsaier
    @ManuelRamsaier 7 ปีที่แล้ว

    Thank you for this helpful video!

  • @mikekibet1786
    @mikekibet1786 7 ปีที่แล้ว

    your videos are the best

  • @tekkkkkkkkkkk
    @tekkkkkkkkkkk 7 ปีที่แล้ว +2

    Cool to learn Python from Ed Snowden

  • @gustavomeza8117
    @gustavomeza8117 5 ปีที่แล้ว

    Thank you dude, I really appreciate this

  • @ab9196
    @ab9196 5 ปีที่แล้ว +1

    i'm really loving all your videos. is it possible to plot a graph with incoming sensor values via MQTT?

  • @oscardaniel2327
    @oscardaniel2327 7 ปีที่แล้ว

    Great video and site, thanks man!

  • @jope4009
    @jope4009 8 ปีที่แล้ว

    First: Thanks for putting up those videos. I really like them.
    I do think there is a slight error in your code:
    To ignore empty strings "if len(line) > 1" should be: "if len(line) > 0".
    But even better: "if line", because an empty string evaluates to 'False'.

  • @leeritenour
    @leeritenour 6 ปีที่แล้ว

    Great tutorial!
    What if I wanted to update a bar chart during the progress of a sorting algorithm, which means the chart will be updated for each loop, not for every period of time. So I can get a nice animation for the sorting process. Thank you!

  • @GAment_11
    @GAment_11 4 ปีที่แล้ว +1

    I assume an adaptation of this video would be needed to plot live POLAR data?

  • @chrisfetty8929
    @chrisfetty8929 5 ปีที่แล้ว

    Great video series.

  • @MrHolyander
    @MrHolyander 7 ปีที่แล้ว

    I really like this demonstration, i searched for a while to have an animated graph to display automaticly the records of my captors. but i wanted to know a thing. I also work on Flask and i wanted to know if it exists a method to display the graph in a website (Flask, python)?

  • @santanajuste2782
    @santanajuste2782 6 ปีที่แล้ว

    thx for all ur useful videos

  • @kirillpushkin
    @kirillpushkin 8 ปีที่แล้ว

    Hi. Thank you very much for your educational videos. I was wondering if you could give an example on how to do live plot pulling data from a google spreadsheet. Thanks!

  • @dpoca
    @dpoca 8 ปีที่แล้ว

    Great video, very useful

  • @leoUFSJ1
    @leoUFSJ1 7 ปีที่แล้ว

    Thanks a lot by the nice video and didactic explanation !

  • @robertrybczynski4107
    @robertrybczynski4107 7 ปีที่แล้ว +1

    Thank you for this video. It is well done. I found two small bugs. xs.append(x) should be xs.append(int(x)). Ditto for y.

  • @mostafaelnady7827
    @mostafaelnady7827 5 ปีที่แล้ว

    really nice sentdex, but i have a dummy question why you not execute the function animate and also why you don't pass a value for the argument( i ) ?

  • @arthurpijpaert5404
    @arthurpijpaert5404 9 ปีที่แล้ว +4

    Hello, great tutorial.
    But I am tryining to make this code work in spyder with the IPython console but it stops immediatly after it has drawn 1 graph. Can I make it work in spyder? And if not, Which editer and console do you use?

    • @hunters.dicicco1410
      @hunters.dicicco1410 7 ปีที่แล้ว

      In my experience, the Spyder IPython console will not support this sort of implementation. I accomplished live plotting by running with the regular Python console. Let me know if you've found a fix, though - I'd love to be able to use the interactive prompt while live plotting.

    •  6 ปีที่แล้ว +1

      Tools > preferences > IPython console > Graphics > Graphics backend > Backend: Automatic

  • @albinlindmark1383
    @albinlindmark1383 5 ปีที่แล้ว

    Thanks a lot sentdex!!

  • @arcanas213
    @arcanas213 5 ปีที่แล้ว +2

    Hello! Really nice tutorial, what i would like to ask is if i can use this even without it reading from an external .txt file!
    Thank you!

    • @StoneVicarious
      @StoneVicarious 4 ปีที่แล้ว

      GeorgeP S yes you just have to create your own array and then call the array instead of the file

  • @ryandaly3680
    @ryandaly3680 5 ปีที่แล้ว +1

    You can just use with open("file","r") as fp: for x in fp: x, y = x.split(","), right?

  • @prashanthb6521
    @prashanthb6521 7 ปีที่แล้ว

    Great thanks a lot :)
    REPEAT:I cant thank you enough for this tutorial :)))

  • @ranojoybarua6468
    @ranojoybarua6468 7 ปีที่แล้ว

    Great video sentdex , I was wondering is there any tool in python by which we can visualize multi-dimensional data graphically like 5D or 6D data.
    Thanks for your great series.

    • @sentdex
      @sentdex  7 ปีที่แล้ว

      Nothing that I know of out of the box. You'll need to do things like PCA and feature reduction down to 3D.

  • @danielferrando7641
    @danielferrando7641 7 ปีที่แล้ว

    Hey, is it possible to plot more than one function with this? as was done in tutorial 2? I'm trying to get N plots using a for loop, but it doesn't seem to be that direct. All in all great series everything is very well explained.

  • @vgoj
    @vgoj 7 ปีที่แล้ว +2

    How to avoid memory leaks with high volume input?

  • @alekhkumar9631
    @alekhkumar9631 4 ปีที่แล้ว +1

    My graph aint updating , i have to run it again . Any fix ?

  • @fisicawaheed
    @fisicawaheed 4 ปีที่แล้ว +1

    Hi
    i was trying to write this code for learning purposes but i stuck with an error ,which says:
    AttributeError: 'builtin_function_or_method' object has no attribute 'split'
    so i need help to figure this out
    i am using Debian 10 and atom as my editor

  • @rajroy2426
    @rajroy2426 3 ปีที่แล้ว

    if you see numbers are not in order then its becuase u r treating it as string, so append it as float it will solve it

  • @tvatabells
    @tvatabells 7 ปีที่แล้ว

    Hello. great video, really helpful. can you please guide on how to create the live graph without having to input data manually.

  • @markuskosters4301
    @markuskosters4301 6 ปีที่แล้ว

    I'm having an issue where the diagramm will be correctly set up. But there is no graph inside the diagram. The diagram even spreads, when the data reaches bigger values. but no graph

  • @supriyabhide5144
    @supriyabhide5144 3 ปีที่แล้ว

    How to make the plot shift left everytime a new data comes, so that only specific number of points will be visible at a time?

  • @jacekk9618
    @jacekk9618 3 ปีที่แล้ว

    dziena gosciu dzrozdz bedzie zadowolony

  • @kirillpushkin
    @kirillpushkin 8 ปีที่แล้ว

    Hi. Than you very much for your videos! I was wondering if you could give an example on how to do live plot pulling data from a google spreadsheet. Thanks!

  • @MyPlaylist-xq8en
    @MyPlaylist-xq8en 7 ปีที่แล้ว

    Hi, is it possible to apply this using django? I've watched all of your django tutorials and it helps me a lot. Great tutorials!

  • @att0805
    @att0805 8 ปีที่แล้ว +3

    Hey Sendex, awesome videos. Can you suggest how to make this work in Spyder? the data just won't update unf.. Also anyone can suggest a canvas style pop out method where you can plot all your functions?

    • @MrRohanrocker
      @MrRohanrocker 8 ปีที่แล้ว

      hey i had the same problem with spyder. just switch over to the python console instead if the iPython console and it'll start updating

    • @deepsudeep
      @deepsudeep 7 ปีที่แล้ว

      I have the same issue with spyder

    • @siddharthachatterjee2335
      @siddharthachatterjee2335 7 ปีที่แล้ว

      This works for me :
      stackoverflow.com/questions/45960590/how-to-add-python-console-in-spyder

  • @mermoqqueijo
    @mermoqqueijo 5 ปีที่แล้ว

    Hello Sentdex thanks for the video. I have a question for you or someone that are reading this:
    I am working with a sensor, to put in a pillow for example, that when you sit it reads the pressure and it returns the values. Can i plot on python some sort of real-time heatmap?
    I was already able to make a plot using pixel map, but i would like to improve that.

  • @SoumilShah
    @SoumilShah 6 ปีที่แล้ว

    i have my sensor displaying live feed using python i have a problem x axis is time after 10 seconds lot of data ia gathered x axis get crowded with dates and there is no more spacing how can i solve this issue

  • @omarelghrably2597
    @omarelghrably2597 2 ปีที่แล้ว

    Thanks for your great tutorial.
    I just have one question, when I've tried to update my example.txt file and saved it, it didn't update the graph automatically as is the video unless I rerun the program again. So, why such thing could happen ?
    I am using jupyter lab. Is there anything special for it ?

  • @ReasonableTechReviewer
    @ReasonableTechReviewer 5 ปีที่แล้ว

    I seem to have a problem... The case is that the plt() function stops all code that comes after, after plt() has been executed. I have put both the write() and animate() functions in a while-loop, but the problem is that the while-loop wont't be executed at all, as the plt() (places before the while-loop) function prevents it from doing so. Is there a solution to this?

  • @kida318
    @kida318 7 ปีที่แล้ว

    man you save my life,

  • @OrhaninAnnesi
    @OrhaninAnnesi 8 ปีที่แล้ว

    Hey there! Thanks for the awesome videos, they really helped me a lot! I also use the animation.FuncAnimation but the subplot configuration, like title and such doesnt have any effect unless its defined in animate function. Any ideas ?

  • @rishis4394
    @rishis4394 8 ปีที่แล้ว

    thanks for your videos was really helpful! Would you please put up the tutorials for animations in Matplotlib! I really need it cz i cant get through it and have my projects at hand so please put up those tutorials!

    • @sentdex
      @sentdex  8 ปีที่แล้ว

      Not sure what you mean, this is a tutorial on matplotlib animations... If you need the source: pythonprogramming.net/live-graphs-matplotlib-tutorial/

  • @jayseagal3681
    @jayseagal3681 4 ปีที่แล้ว

    I am reading a CSV file to plot a graph, I am using two lists to plot values in the ax1.plot(xs, ys) but my graph line makes a rhythmic pattern because the list is printed all over again after every second

  • @jarrydhorn7049
    @jarrydhorn7049 5 ปีที่แล้ว

    In case it hasn't been said:
    Subplots do not behave like normal plots in pyplot, they behave like plotly plots.
    To get a scatter (instead of line) plot, use ax1.scatter(xs,ys) instead of ax1.plot(xs,ys)
    For more information on plot options for plotly plots: plot.ly/matplotlib/line-and-scatter/

  • @VDEngineering
    @VDEngineering 7 ปีที่แล้ว

    Could you please make one regarding plotting animated graphs? I am searching all over and can't find one for the life of me!

  • @abdelaleem4026
    @abdelaleem4026 4 ปีที่แล้ว

    Hi, do you encounter the problem where you can't append endless values to y, so the graph stops plotting?

  • @dlstrck6000
    @dlstrck6000 8 ปีที่แล้ว

    ty for this useful informations.I have a question.I want to create multiple lines on same graph.How can I do that?

  • @shakyaikesh3512
    @shakyaikesh3512 6 ปีที่แล้ว

    hi...
    i am developing a gui which consist of button named "graph". so clicking on that button will show a live graph. however, once you close the plot fig and try to reopen the graph, the application hangs up. i think the problem is with animation which is looping infinitely. if so how can i terminate the matplotlib animation?
    any suggestions are deeply appriciated.

  • @abhishekjadhavar4277
    @abhishekjadhavar4277 4 ปีที่แล้ว

    Y axis values are required to be unique for this code, any solutions?
    So if I try to repeat value on Y axis ie first column, new value is plotted on the graph thus same value is repeated on the Y axis!

  • @MsAlsada90
    @MsAlsada90 6 ปีที่แล้ว

    Nice tutorial,could you make a tutorial about live graphs in polar scale?

  • @23456JY
    @23456JY 5 ปีที่แล้ว

    how did you output the graph, not via command line? I didnt follow how you managed to output the figure. please advise thanks!

  • @alan1507
    @alan1507 8 ปีที่แล้ว

    This is probably a completely stupid question as I'm new to Python, and haven't watched all the previous videos. What appears to be the case is that you call x,y = line.split(','), which presumably returns string representations to the variables x and y. Then these are just appended to the lists xs and ys, without first converting it to a floating point number or integer. Then you call plot with lists of strings - how does this work?

    • @khmsalhuas1
      @khmsalhuas1 7 ปีที่แล้ว

      Think of the namespace, graph_data, as one big connected string after you applied the 'read' method on the file object. Now, if you use the split method on the string object, graph_data, and you specify a separator (in this case, '
      ', which just means separate by a new line), then you produce/return a list of strings (basically lines). Now a line is just a string object/type. So, you can also apply the split method on it. Since you know from your file that the data is separated by comma, just use comma as a separator and that will give you a list of two values: x value as a string, and y value as a string. Now comes how matplotlib module wish to evaluate your values. I think they implicitly convert the string to its float/integer representation by calling, maybe correct me if I am wrong here, an eval() builtin function. I hope that helps. Python is different from other languages in that you don't have to specify the type of variables/namespaces because it assumes you already have that information in your mind and no need to spell it out to the machine.

    • @0161rt
      @0161rt 7 ปีที่แล้ว

      I am having issues on the datatype 'string' after .split. Somehow my matplotlib library did not convert the strings to float or integer. Therefore, my plot comes out empty since I am plotting the xs/ys arrays which did not get appended because they are strings. I guess that is why Iain complained about this. Does the modules vary by version?? I am using python 2.7.12 and matplotlib 2.0.2. though

  • @vhoramuiz
    @vhoramuiz 7 ปีที่แล้ว

    This doesn't seem to work for jupyter notebooks! Any suggestions on how to implement this graph? My example.csv is saved in the jupyter localhost and I am updating in different jupyter window.

  • @slonbeskonechen8310
    @slonbeskonechen8310 3 ปีที่แล้ว

    Awesome!!!!! Thank you!

  • @preetamchahar4475
    @preetamchahar4475 6 ปีที่แล้ว

    I want to plot some live points ( they may be considered equivalent to some moving plane) on graph , which are changing their positon according to specified speed and heading, by right clicking on the point i should be able to change its speed and heading. Is this feasible in python?

  • @sivarajchinnasamy11
    @sivarajchinnasamy11 4 ปีที่แล้ว

    hello sir may i know how to plot the graph from the video data (like no of peoples passing through the security camera per minuite)

  • @neverstoplearning1806
    @neverstoplearning1806 5 ปีที่แล้ว

    Hello! I am new to Python and trying to learn networkx. I am attempting to remove highest degree node in a graph and but failing to display the graph every time a node is removed. May you please help me on how to do this? Thanks

  • @razahyder9796
    @razahyder9796 4 ปีที่แล้ว

    i am collecting data from sensor, and because its being updated i cannot use zoom or pan tools in the nav bar of matplotlib any suggestions?

  • @samirmondal7781
    @samirmondal7781 4 ปีที่แล้ว

    I am following your class but in live graph my x y value randomly oriented and always make a straight line which I don't want.

  • @monolito8556
    @monolito8556 7 ปีที่แล้ว

    Fabulous !!!, thank you so much!

    • @sentdex
      @sentdex  7 ปีที่แล้ว

      Happy to share!

  • @MAli-zh6cr
    @MAli-zh6cr 5 ปีที่แล้ว

    Hi
    very useful resource tbh. my question is how to harness this script to show the content on a webpage? Cheers

  • @jerrywu751
    @jerrywu751 4 ปีที่แล้ว +4

    For those who use Pycharm, remember to uncheck "show plots in tool window" otherwise nothing will show up T_T

    • @emilianrosu5582
      @emilianrosu5582 4 ปีที่แล้ว +1

      I thought I will never solve the problem.....THANKS!!

    • @shivathapa3934
      @shivathapa3934 4 ปีที่แล้ว +1

      I couldn't find that option in settings can you help me?

    • @jerrywu751
      @jerrywu751 4 ปีที่แล้ว +1

      @@shivathapa3934 press 'ctrl alt s' to enter setting, then find 'Tools->Python Scientific->show plots in tool window'

    • @shivathapa3934
      @shivathapa3934 4 ปีที่แล้ว +1

      @@jerrywu751 Thank you so much.

    • @DEEPAKSV99
      @DEEPAKSV99 4 ปีที่แล้ว

      @@jerrywu751 Thank you so much for saving a lot of our time. Fortunately, this showed up for me as the Top Comment

  • @Mr2fadded94
    @Mr2fadded94 9 ปีที่แล้ว

    I'm trying to get a live graph and I see how your using the sample file but but when using the yahoo finance Api for TGT I can't make it work :( any chance of throwing up a simple sample of the live without reading from a txt file

  • @SirArghPirate
    @SirArghPirate 7 ปีที่แล้ว

    These videos are really good, but how do I modify this code to plot numbers received as serial data from Arduino? Can I expect update rates of 100Hz on this?

  • @alecryan8220
    @alecryan8220 5 ปีที่แล้ว

    I would like to do this but include a slider that allows me to back date my data. Any ideas on how to do this? Thanks!

  • @sakshipatel9786
    @sakshipatel9786 5 ปีที่แล้ว

    When I am running this code, I am unable to see the graph and instead of that big list has shown up

  • @punjaramborhade1701
    @punjaramborhade1701 2 ปีที่แล้ว

    How to use subplot in animate, I mean if we want 2 plot(graph) say line, that to be real time data recording in excel in plotting in fig…?.??

  • @franciskalonjimbuyamba5215
    @franciskalonjimbuyamba5215 5 ปีที่แล้ว

    Wait, shouldn't you have passed a parameter to the function animate?

  • @abhishekrawat5096
    @abhishekrawat5096 3 ปีที่แล้ว

    Sir what should i do if I don't want that old data on the graph?