GithubHelp home page GithubHelp logo

python-electric's People

Watchers

 avatar

python-electric's Issues

charts.py in CreateAverageChart, line 962

What steps will reproduce the problem?
1. Electricity View Day when there is not enough data
2.
3.

What is the expected output? What do you see instead?
Error Screen 
charts.py in CreateAverageChart, line 962
ZeroDivisionError at /electric/bar/2010/03/22/

Please use labels and text to provide additional information.

code...



 955. G.axes('xyr')
 956. G.axes.range(1, cost*bottom,cost*top,cost*2)
 957. G.axes.range(2, bottom,top,4)
 958.
 959. G.axes.label(0, '|'.join(x_label))
 960.
 961. dayofweek = int(d_start.strftime('%w'))

 962. x_stepsize = 99.9/(count-1)*7 ...

 963. y_stepsize = y_max/scale/2
 964. x_offset = x_stepsize - dayofweek/7.0*x_stepsize
 965.
 966. G.grid(x_stepsize, y_stepsize, 1, 0, x_offset, 0)
 967.
 968. G.marker ('@telectricity in kW h', '666666', 0, '1:1', 10)



Original issue reported on code.google.com by [email protected] on 18 Oct 2010 at 12:57

charts.py overrides HOME env variable

python_electric/apps/electric/charts.py has a hardcoded override of the HOME 
environment variable for matplotlib.  It should probably append charts to the 
media path defined in the settings

Original issue reported on code.google.com by [email protected] on 3 Mar 2011 at 8:21

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.