Giter Club home page Giter Club logo

slope's Introduction

slope's People

Contributors

pascal-schetelat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

slope's Issues

Labels drawn incorrect

Hi Pascal,

I stumbled upon your great IPython Notebook for the Slope module, but by trying it myself I have issues with the plotting of the labels. The line is continuous where in your results they aren't and show a white background. See this example:

test

Is there any quick hack to solve this? I tried it on a windows and Linux version resulting in both the same issue.

Thanks!

Error in the Random Data Example

Hello,

I'm not sure if Slope could work with Python 3.5, but I just tried the Random Data Example and the plotting is not as expected.

Code:

import pandas as pd
import numpy as np
from slope.plotSlope import slope
df = pd.DataFrame( np.random.normal(loc=np.ones(shape=[20,30])*np.arange(30)))
df.rename(columns = lambda el : str(el),index =lambda el : str(el),inplace=True)
f = slope(df.T,width =10,height= 8,kind='ordinal',savename='t.png',dpi=200,color={'10':'red','27':'blue'},marker=None)

This code will produce this graph:
Result

These warnings are shown, but from what I understood they are not related to the plotting:

C:\path\to\plotSlope.py:170: FutureWarning: sort is deprecated, use sort_values(inplace=True) for INPLACE sorting
  yMark_L.sort(ascending=False)
C:\path\to\plotSlope.py:171: FutureWarning: sort is deprecated, use sort_values(inplace=True) for INPLACE sorting
  yMark_R.sort(ascending=False)
C:\path\to\plotSlope.py:178: FutureWarning: sort(columns=....) is deprecated, use sort_values(by=.....)
  yPos_L.sort(cols[i], inplace=True)
C:\path\to\plotSlope.py:179: FutureWarning: sort(columns=....) is deprecated, use sort_values(by=.....)
  yPos_R.sort(cols[i + 1], inplace=True)
C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py:1288: UserWarning: findfont: Font family ['GillSans'] not found. Falling back to Bitstream Vera Sans
  (prop.get_family(), self.defaultFamily[fontext]))

with pandas (0.18.1), numpy (1.11.0), and matplotlib (1.5.1)

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.