Ask Your Question

'Graphics' object is not callable

asked 2021-10-29 09:40:28 +0200

CyrilleP gravatar image

updated 2021-10-29 11:07:18 +0200

tmonteil gravatar image

Sorry to ask anonymously a question but I cannot recover my account (...@...). . Why

var("x_2 z")
sol1=solve(4*x_1+ 3*x_2==z,x_2)

leads to 'Graphics' object is not callable ?

edit retag flag offensive close merge delete


Apart from the fact that i have to add some var("x_1"), it works well for me.

tmonteil gravatar imagetmonteil ( 2021-10-29 11:00:53 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-10-29 11:22:12 +0200

rburing gravatar image

updated 2021-10-29 11:24:58 +0200

Probably you have accidentally used plot (or solve or show) as the name of a variable in a piece of code that you didn't include here, so that the name no longer refers to the built-in function.

So don't use that name for your variable.

edit flag offensive delete link more


Thanks. I feel so stupid.

CyrilleP gravatar imageCyrilleP ( 2021-10-29 21:33:08 +0200 )edit

Don't worry, it happens to the best of us. You can also use from sage.plot.plot import plot to get the usual plot back in an active session. To discover that statement I used import_statements("plot").

rburing gravatar imagerburing ( 2021-10-29 21:41:07 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2021-10-29 09:39:40 +0200

Seen: 758 times

Last updated: Oct 29 '21