mikedewar / d3py

a plottling library for python, based on D3
1.42k stars 201 forks source link

No module named axis #41

Open gerigk opened 12 years ago

gerigk commented 12 years ago

Traceback (most recent call last): File "testd3.py", line 1, in import d3py File "/usr/local/lib/python2.7/dist-packages/d3py/init.py", line 2, in from geoms import * File "/usr/local/lib/python2.7/dist-packages/d3py/geoms/init.py", line 5, in from axis import Axis ImportError: No module named axis

when running the example code

import d3py import pandas import numpy as np

some test data

T = 100

this is a data frame with three columns (we only use 2)

df = pandas.DataFrame({ "time" : range(T), "pressure": np.random.rand(T), "temp" : np.random.rand(T) })

build up a figure, ggplot2 style

instantiate the figure object

fig = d3py.Figure(df, name="basic_example", width=300, height=300)

add some red points

fig += d3py.geoms.Point(x="pressure", y="temp", fill="red")

writes 3 files, starts up a server, then draws some beautiful points in Chrome

fig.show()

mikedewar commented 11 years ago

has this been fixed recently? I can't replicate the error. Anyone?