Comments (8)
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.
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.
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.
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.
Looks like it should. I'm sorry, I'm not sure what could be going on either.
from scikit-fuzzy.
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.
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.
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)
- Piecewise Linear Membership Function HOT 1
- Advance sample
- Bug and its possible solution (with drawing graph in Jupyter) HOT 1
- import error on raspi OS with python 3.9 HOT 1
- cmeans loops go to maxiter - 1 instead of maxiter
- Rules
- About fuzzy partition coefficient (FPC)
- Plot window closes instantly HOT 1
- Unable to install scikit-fuzzy HOT 5
- Doubt about replace rules
- Replacement of nose with pytest HOT 1
- Prueba
- Consequent set as antecedent
- TypeError: 'NoneType' object is not subscriptable
- setup.py is missing.
- Request for Feature: Percent of Activation Rules and Antecedent Pertinence
- How to change rule weights.
- Any plan for a new release ? HOT 2
- quesiton on operations missing last value
- 404 table of content link
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-fuzzy.