Graph bar: color vs monochrome

24 views
Skip to first unread message

xanant

unread,
Nov 22, 2019, 3:43:55 PM11/22/19
to spyder
I'm new to Spyder. I have a perhaps trivial request: after installing (a) Spyder 3.3.3 (with Anaconda and Python 2.7) I then switched to (b) Spyder 3.3.6 (Anaconda and Python 3.7) and I find myself with an oddity. By creating a very simple bar graph using 'matplotlib', in Spyder (a) the bars are drawn with different colors from one another while with Spyder (b) they are monochrome. Depends on what? From Python or from Spyder? I repeat I am a newbie and do not understand much of it so far. Thanks in advance if someone will have the patience to respond.
Foto Spyder 33..3 con Python 2.7.png
Foto Spyder 3.3.6 con Python 3.7.png

Fergal Mullally

unread,
Nov 23, 2019, 11:07:41 AM11/23/19
to spyd...@googlegroups.com
Hi Xanant,

I'm not 100% sure, but i think there was a change to the default settings in a recent version of matplotlib. The newer versions of matplotlib do not support python 2.7, so anaconda installs an older version instead.

If you're new to python it usually makes sense to use python 3 only, major packages like matplotlib, numpy and scipy don't support python 2 anymore.


Fergal

On Fri, Nov 22, 2019, 3:43 PM xanant <sandrod...@gmail.com> wrote:
I'm new to Spyder. I have a perhaps trivial request: after installing (a) Spyder 3.3.3 (with Anaconda and Python 2.7) I then switched to (b) Spyder 3.3.6 (Anaconda and Python 3.7) and I find myself with an oddity. By creating a very simple bar graph using 'matplotlib', in Spyder (a) the bars are drawn with different colors from one another while with Spyder (b) they are monochrome. Depends on what? From Python or from Spyder? I repeat I am a newbie and do not understand much of it so far. Thanks in advance if someone will have the patience to respond.

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/28520fb3-08f8-4541-bc24-0deeb82f17bf%40googlegroups.com.

xanant

unread,
Nov 26, 2019, 10:11:05 PM11/26/19
to spyd...@googlegroups.com
Hi Fergal
Thanks for the reply. I don't think I was too clear in the question. I was just wondering why matplotlib 2.2.3, Python 2.7 and Spyder 3.3.1 installed with Anaconda (2) produces color graphics while matplotlib 3.1.1, Python 3.7 and Spyder 3.3.6 installed with Anaconda (3) produce them only monochromatic. It would seem logical to me that the new 'matplotlib' provides the same effect also in the upgrade. I repeat, being newbie, maybe I still don't realize correctly. Following this, for the simple graphs I need (checks on a survey) I still use, for aesthetic reasons, the 'old' matplotlib.

Reply all
Reply to author
Forward
0 new messages