1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Importing Matplotlib

Discussão em 'Python' iniciado por Stack, Abril 1, 2025.

  1. Stack

    Stack Membro Participativo

    I am new to Python and I am learning matplotlib. I am following the video tutorial recommended in the official User Manual of matplotlib: 'Plotting with matplotlib' by Mike Muller. The instructor does not show how he imports matplotlib but proceeds instantly with commands such as plot(x, linear, x, square), where x a sequence he has defined.

    I tried to run

    import matplotlib
    from matplotlib import pyplot as plt
    import numpy as np
    import pandas as pd
    x = np.arange(100)
    lines = plot(x, 'linear', 'g:+', x, 'square','r-o')


    and got the error

    NameError: name 'plot' is not defined

    Continue reading...

Compartilhe esta Página