Tags » Python

Interactive Plotting in IPython Notebook (Part 2/2): Plotly

Interactive Plotting in IPython Notebook (Part 2/2): Plotly

Summary

In this previous post I talked about interactive plotting packages that support the IPython Notebook and focused on… 1,075 more words

Python

dropbox client reversed!

I just read this INCREDIBLY INTERESTING article on how to reverse engineer the Dropbox client on windows.

Python

broken hachure

 

In this first hachure test, we began by positioning the canvas origin to the canvas centre. We then drew 100 vertical lines of random length, but not longer than 300 px using a for loop. 73 more words

WeatherLog 2.0

I decided to move this release to 2.0 (instead of 1.11, which is what it was originally going to be), due to it breaking backwards compatibility. 408 more words

Programming

Interactive Plotting in IPython Notebook (Part 1/2): Bokeh

Interactive Plotting in IPython Notebook (Part 1/2): Bokeh

Summary

In this post I will talk about interactive plotting packages that support the IPython Notebook and allow you to zoom, pan, resize, or even hover and get values off your plots directly from an IPython Notebook. 856 more words

Python

Draw Vietnamese flag using Turtle module in Python

Using the module turtle and Python3. The following program will generate (roughly) the Vietnamese flag.

import turtle
wn = turtle.Screen()            # Set up the window and its attributes
wn.bgcolor("red")               # Background color of the screen
screen_width = 750;             # Width of the screen
screen_height = 500;            # Height of the screen
star_length = 200;              # Length of one side of the star

wn.setup(width = screen_width, height = screen_height)
wn.title("Flag of Vietnam")

vin = turtle.Turtle()
vin.color("red")                # Set the color of the turtle to red
# Move the turtle to a predefined coordinate
vin.setx((screen_width - star_length)/2 - screen_width/2)
vin.sety(star_length/4)
vin.color("yellow")
vin.shape("blank")              # Hide the shape of the turtle
vin.pensize(3)                  # Pen size of the turtle

# Draw the flag
for counter in range(5):
    vin.forward(star_length)                 
    vin.right(144)

wn.exitonclick()

and the result is:

Python

Using ArcObjects in Python

Recently, I found the need for more fine-grained control over a map document than the Arcpy library alone could afford, so I turned to the comtypes library (downloaded  168 more words

Programming