question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plotting a x^2 graphics

See original GitHub issue

Description

What steps will reproduce the problem?

import matplotlib.pyplot as plt import numpy as np

print (“for x axis:”) start=float (input("insert start number: ")) end=float (input("insert end number: ")) increment=float (input("insert increment from 0: ")) x=np.arange(start,end,increment) y=x^2

plt.plot(x,y, ‘y’, label=‘y=x^2’) plt.show()

##im using x in interval of -200 to 200

Traceback

  File "S:\ANACONDA_ProgramFiles\lib\site-packages\spyder\plugins\editor\utils\autosave.py", line 116, in do_autosave
    stack.autosave.autosave_all()
  File "S:\ANACONDA_ProgramFiles\lib\site-packages\spyder\plugins\editor\utils\autosave.py", line 375, in autosave_all
    self.maybe_autosave(index)
  File "S:\ANACONDA_ProgramFiles\lib\site-packages\spyder\plugins\editor\utils\autosave.py", line 335, in maybe_autosave
    orig_hash = self.file_hashes[orig_filename]
KeyError: 'C:\\Users\\User\\.spyder-py3\\autosave\\FUNGSI HERMITE.py'

Versions

  • Spyder version: 4.0.1
  • Python version: 3.7.6
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies

atomicwrites >=1.2.0         :  1.3.0 (OK)
chardet >=2.0.0              :  3.0.4 (OK)
cloudpickle >=0.5.0          :  1.3.0 (OK)
diff_match_patch >=20181111  :  20181111 (OK)
intervaltree                 :  None (OK)
IPython >=4.0                :  7.12.0 (OK)
jedi =0.14.1                 :  0.14.1 (OK)
nbconvert >=4.0              :  5.6.1 (OK)
numpydoc >=0.6.0             :  0.9.2 (OK)
pexpect >=4.4.0              :  4.8.0 (OK)
pickleshare >=0.4            :  0.7.5 (OK)
psutil >=0.3                 :  5.6.7 (OK)
pygments >=2.0               :  2.5.2 (OK)
pylint >=0.25                :  2.4.4 (OK)
pyls >=0.31.2;<0.32.0        :  0.31.7 (OK)
zmq >=17                     :  18.1.1 (OK)
qdarkstyle >=2.7             :  2.8 (OK)
qtawesome >=0.5.7            :  0.6.1 (OK)
qtconsole >=4.6.0            :  4.6.0 (OK)
qtpy >=1.5.0                 :  1.9.0 (OK)
rtree >=0.8.3                :  0.9.3 (OK)
sphinx >=0.6.6               :  2.4.0 (OK)
spyder_kernels >=1.8.1;<2.0.0:  1.8.1 (OK)
watchdog                     :  None (OK)
cython >=0.21                :  0.29.15 (OK)
matplotlib >=2.0.0           :  3.1.3 (OK)
numpy >=1.7                  :  1.18.1 (OK)
pandas >=0.13.1              :  1.0.1 (OK)
scipy >=0.17.0               :  1.4.1 (OK)
sympy >=0.7.3                :  1.5.1 (OK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
juanis2112commented, May 31, 2020

I think your anaconda installation is broken and the easiest way to fix it is uninstalling it and installing it again, but make sure to delete the directory S:\ANACONDA_ProgramFiles manually before doing your installation again.

1reaction
juanis2112commented, Jun 1, 2020

already did, and this time not in custom installation and still cant install it

In that case it seems that the issue is not related to Spyder, but with Anaconda. There’s not much that we can do to help you solve this, sorry. Try reporting the issue here https://github.com/ContinuumIO/anaconda-issues/issues/ to see if they can guide you better through this.

However, before running conda install spyder=4.1.3, you have to run conda update anaconda

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plotting & Graphics - Wolfram|Alpha Examples
Use interactive calculators to plot and graph functions. Try 3D plots, equations, inequalities, polar and parametric plots. Specify ranges for variables.
Read more >
Graph of x^2 | What is the x2 graphic drawing? ~ Mathematics
We wish everyone a good day. In this article, we will share the graph of x to the 2nd. What is the graph...
Read more >
2D Plotting - 2D Graphics - SageMath Documentation
Sage provides extensive 2D plotting functionality. The underlying rendering is done using the matplotlib Python library. The following graphics primitives are ...
Read more >
Plotting Functions with Turtle Graphics Part 1 - YouTube
Python includes a graphics library of LOGO like functions that can be used in a huge variety of ways. In this video I...
Read more >
2-D line plot - MATLAB plot - MathWorks
For example, plot(X1,Y1,"o",X2,Y2) specifies markers for the first x-y pair but not for the second pair. example. plot( Y ) plots Y against...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found