Giter Site home page Giter Site logo

Comments (8)

JDWarner avatar JDWarner commented on June 28, 2024

Having trouble reproducing this.

I just re-tested with the latest stable releases of everything scikit-fuzzy depends on in the Anaconda stack. The results I'm getting are exactly as shown in the docs here.

Can you check your matplotlib version? The only other thing that comes to mind is that the colors in this example depend on matplotlib's default color cycling. If you have custom matplotlib parameters set, or have set a custom color cycler, that could explain the difference.

If not, please give some more information about your system and what versions of Python, scikit-fuzzy, and matplotlib you're running.

from scikit-fuzzy.

redfoxufa avatar redfoxufa commented on June 28, 2024

Dear JDWarner,
I use Ubuntu 15.10 and Pycharm Comunity Edition 5.0.4. I have updated matplotlib with following comand:
sudo apt-get build-dep python-matplotlib
Then I have opend the link 'http://pythonhosted.org/scikit-fuzzy/auto_examples/plot_cmeans.html'
I have copied a block 'Data generation and setup' into the PyCharm. That's all right. I have three colored dots. But following blocks of code: 'Clustering', 'The fuzzy partition coefficient (FPC)', 'Classifying New Data' and 'Prediction' gives me a blue dots. Can you help me?
With best regards, Marat

from scikit-fuzzy.

jsexauer avatar jsexauer commented on June 28, 2024

I have no clue what could cause this. Can you verify that the colors list isn't somehow getting modified by adding print(colors) after each section?

from scikit-fuzzy.

redfoxufa avatar redfoxufa commented on June 28, 2024

Dear Josh,
I have inserted a print statement between blocks.
Can you look at results?
Marat

Python version 3.4.4 |Anaconda 2.3.0 (64-bit)| (default, Jan 11 2016,
13:54:01)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
Pandas version 0.17.1
Matplotlib version 1.4.3

['b', 'orange', 'g', 'r', 'c', 'm', 'y', 'k', 'Brown', 'ForestGreen']
['b', 'orange', 'g', 'r', 'c', 'm', 'y', 'k', 'Brown', 'ForestGreen']
['b', 'orange', 'g', 'r', 'c', 'm', 'y', 'k', 'Brown', 'ForestGreen']
['b', 'orange', 'g', 'r', 'c', 'm', 'y', 'k', 'Brown', 'ForestGreen']

2016-02-24 9:27 GMT+05:00 Josh Warner [email protected]:

Having trouble reproducing this.

I just re-tested with the latest stable releases of everything
scikit-fuzzy depends on in the Anaconda stack. The results I'm getting are
exactly as shown in the docs here
http://pythonhosted.org/scikit-fuzzy/auto_examples/plot_cmeans.html.

Can you check your matplotlib version? The only other thing that comes to
mind is that the colors in this example depend on matplotlib's default
color cycling. If you have custom matplotlib parameters set, or have set a
custom color cycler, that could explain the difference.

If not, please give some more information about your system and what
versions of Python, scikit-fuzzy, and matplotlib you're running.


Reply to this email directly or view it on GitHub
#80 (comment)
.

from scikit-fuzzy.

jsexauer avatar jsexauer commented on June 28, 2024

Looks like it should. I'm sorry, I'm not sure what could be going on either.

from scikit-fuzzy.

JDWarner avatar JDWarner commented on June 28, 2024

At this point I'm relatively confident it isn't the script or scikit-fuzzy causing the problem. I've verified the correct behavior in Python 2/3, on three separate operating systems (Win7, OSX, Linux Mint).

I suspect an issue with how matplotlib is installed or configured, and this may not be the ideal place to troubleshoot it. If we can't get to the bottom of this here you may need to raise an issue with matplotlib.

Do you see this with any other Matplotlib figures? If so, can you make a small example of another instance where the color= kwarg seems to be ignored?

You could also try installing a scientific Python distribution like Anaconda, after which I expect this problem would disappear.

from scikit-fuzzy.

redfoxufa avatar redfoxufa commented on June 28, 2024

Thank you so much for your patience)))
Marat

2016-03-06 0:09 GMT+05:00 jsexauer [email protected]:

Looks like it should. I'm sorry, I'm not sure what could be going on
either.


Reply to this email directly or view it on GitHub
#80 (comment)
.

from scikit-fuzzy.

JDWarner avatar JDWarner commented on June 28, 2024

Closing this as we cannot reproduce the problem. If you solve this, @redfoxufa, please post the solution and cause!

For posterity, as a workaround to future readers, this behavior is definitely absent in Python distributions like Anaconda, Python(x,y), and Canopy. A clean install and fresh virtual environment should result in the expected color behavior in all cases.

from scikit-fuzzy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.