Comments (3)
Did you see other Python 3 issue ?
from slope.
I'm getting (the same) matplotlib error on the first two slope() examples in the demo notebook but not the third:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-5-bc21aead65ec> in <module>()
----> 1 f = slope(data/1000,width =30,height= 12,kind='interval',font_size=20,color=color,savename=None,dpi=200)
/vagrant/notebooks/Slope-master/plotSlope.py in slope(data, kind, marker, color, title, font_family, font_size, width, height, ax, savename, dpi, wspace)
227 elif marker :
228 ax.set_yticks(yPos_L.values)
--> 229 ax.set_yticklabels(ylabelsL_str,fontproperties = font,ha='right')#ha='center')#,backgroundcolor='w')
230 else :
231 plt.setp(ax.get_yticklabels(),visible=False)
/usr/lib/python3/dist-packages/matplotlib/axes.py in set_yticklabels(self, labels, fontdict, minor, **kwargs)
2863 """
2864 return self.yaxis.set_ticklabels(labels, fontdict,
-> 2865 minor=minor, **kwargs)
2866
2867 def xaxis_date(self, tz=None):
/usr/lib/python3/dist-packages/matplotlib/axis.py in set_ticklabels(self, ticklabels, *args, **kwargs)
1509 ret2 = []
1510 for i, tick in enumerate(ticks):
-> 1511 if i < len(ticklabels):
1512 if tick.label1On:
1513 tick.label1.set_text(ticklabels[i])
TypeError: object of type 'map' has no len()
Not had chance to check/update my version of matplotlib...
The third slope() example plotted fine.
from slope.
Fixed it with 393483f
Wasn't due to Matplotlib, but o Python3 usage of iterable and mapping.
from slope.
Related Issues (3)
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 slope.