--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/def85976-42a2-4dd0-90a6-b65d7ea7b718%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In my opinion, it shouldn't happen. Feel free to raise an issue on github for this.
A while back I was advised to report a SymPy website issue on github. The site said it would email me back (to set up a user name), and no message came. I don't know if I am the only person with that problem.
David
I think for website the issue can be raised at, https://github.com/sympy/sympy.github.com/issues
Is it the case that you are not on github?
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/00e920ed-a265-4a33-865d-8f1d8add6cc5%40googlegroups.com.
I am puzzled as to whether 64 bit python under windows supports plotting. Here is a typical experiment to obtain a plot:
import sympy
from sympy import *
var('x y')
plotting.plot3d((exp(-(x**2+y**2))),(x,-3,3),(y,-3,3))
Traceback (most recent call last):
File "C:\PythonTests\SymPyWorkbook\plottest.py", line 4, in
<module>
plotting.plot3d((exp(-(x**2+y**2))),(x,-3,3),(y,-3,3))
File "C:\PythonSystem\lib\site-packages\sympy\plotting\plot.py",
line 1756, in plot3d
plots.show()
File "C:\PythonSystem\lib\site-packages\sympy\plotting\plot.py",
line 186, in show
self._backend = self.backend(self)
File "C:\PythonSystem\lib\site-packages\sympy\plotting\plot.py",
line 1114, in __new__
return MatplotlibBackend(parent)
File "C:\PythonSystem\lib\site-packages\sympy\plotting\plot.py",
line 904, in __init__
self.plt = self.matplotlib.pyplot
AttributeError: 'NoneType' object has no attribute 'pyplot'
I have also tried creating an image file, rather than using Windows directly:
import sympy
from sympy import *
from sympy.plotting import plot
x = symbols('x')
p1 = plot(x*x, show=False)
p2 = plot(x, show=False)
# p1.append(p2[0])
p1.save('testing.png')
This also failed
David
File "C:\PythonSystem\lib\site-packages\sympy\plotting\plot.py", line 904, in __init__
self.plt = self.matplotlib.pyplot
AttributeError: 'NoneType' object has no attribute 'pyplot'
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/9e92d387-6a57-5ae1-2ece-13247db8aeb0%40dbailey.co.uk.
Thanks for that quick response. Here is what I get using that code:
Traceback (most recent call last):
File "C:\PythonTests\SymPyWorkbook\t1.py", line 1, in <module>
import matplotlib.pyplot as plt
File "C:\PythonSystem\lib\site-packages\matplotlib\pyplot.py", line 2372, in <module>
switch_backend(rcParams["backend"])
File "C:\PythonSystem\lib\site-packages\matplotlib\pyplot.py", line 207, in switch_backend
backend_mod = importlib.import_module(backend_name)
File "C:\PythonSystem\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\PythonSystem\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 1, in <module>
from . import _backend_tk
File "C:\PythonSystem\lib\site-packages\matplotlib\backends\_backend_tk.py", line 5, in <module>
import tkinter as Tk
ModuleNotFoundError: No module named 'tkinter'
I therefore tried to install mathplotlib
...\Scripts>pip install mathplotlib
Collecting mathplotlib
ERROR: Could not find a version that satisfies the requirement mathplotlib (from versions: none)
ERROR: No matching distribution found for mathplotlib
backend : Qt5Agg
Hope that helps !
Regards,
Jean Abou Samra
Thank you! Amazingly, all that worked first time - I certainly would not have stumbled upon that solution on my own! Pip did the job, I did not need to use a variant:
pip --version
pip 19.1.1 from c:\pythonsystem\lib\site-packages\pip (python 3.7)
Tell me, if I want to create an application for others to use, I'd certainly not want everyone to have to go through that procedure. Do I take it that I can put a suitably configured Python directory in a subdirectory of the directory containing the application so that my code will run out of the box (so to speak)? Also are there any legal complications to doing that?
I take it more than one backend can be installed and selected by
the matplotlib.use() instruction?
OK - I certainly don't want to sound grudging after helping me
like that, but I guess this forum is concerned with ways to
improve sympy as much as possible, so here goes.
Can't this all be tidied up a bit - users must hit this problem very often. In fact I thought I did everything in a completely standard way - I downloaded and installed Pyethon3.7, installed sympy and (I remember now) installed matplotlib. Is there any reason why that should not work by default?
Surely if a suitable backend is not available, the system could detect this and emit a meaningful error message - or better still attempt to download and install the necessary files (rather as Latex does), and then continue?
David
Le 12 juil. 2019 à 22:47, David Bailey <da...@dbailey.co.uk> a écrit :On 12/07/2019 14:48, Jean ABOU SAMRA wrote:
Cough. It's more complicated than I thought at first.Thank you! Amazingly, all that worked first time - I certainly would not have stumbled upon that solution on my own! Pip did the job, I did not need to use a variant:
pip --version
pip 19.1.1 from c:\pythonsystem\lib\site-packages\pip (python 3.7)
Tell me, if I want to create an application for others to use, I'd certainly not want everyone to have to go through that procedure. Do I take it that I can put a suitably configured Python directory in a subdirectory of the directory containing the application so that my code will run out of the box (so to speak)?
Also are there any legal complications to doing that?
I take it more than one backend can be installed and selected by the matplotlib.use() instruction?
OK - I certainly don't want to sound grudging after helping me like that, but I guess this forum is concerned with ways to improve sympy as much as possible, so here goes.
Can't this all be tidied up a bit - users must hit this problem very often. In fact I thought I did everything in a completely standard way - I downloaded and installed Pyethon3.7, installed sympy and (I remember now) installed matplotlib. Is there any reason why that should not work by default?
Surely if a suitable backend is not available, the system could detect this and emit a meaningful error message - or better still attempt to download and install the necessary files (rather as Latex does), and then continue?