Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed typo in imports #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions geoplotlib/core.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from Queue import Queue
from queue import Queue
from threading import Thread
from pyglet.window import mouse
import time
Expand Down Expand Up @@ -58,7 +58,7 @@ def draw(self, painter):
for i in range(self.cmap.levels+1):
if i < self.cmap.levels:
painter.set_color(colors[i][:-1])
painter.rect(SCREEN_W-2*bar_w/2, SCREEN_H-total_h*1.5+step*i,
painter.rect(SCREEN_W-2*bar_w/2, SCREEN_H-total_h*1.5+step*i,
SCREEN_W-bar_w/2, SCREEN_H-total_h*1.5+step*(i+1))
lab.x = SCREEN_W-2*bar_w/2*1.1
lab.y = SCREEN_H-total_h*1.5+step*i
Expand Down Expand Up @@ -252,7 +252,7 @@ def on_draw(self):
color=FONT_COLOR,
font_name=FONT_NAME,
font_size=int(.8*SCREEN_W*FONT_SCALING),
x=SCREEN_W-int(.2*SCREEN_W*FONT_SCALING),
x=SCREEN_W-int(.2*SCREEN_W*FONT_SCALING),
y=int(1.2*SCREEN_W*FONT_SCALING),
anchor_x='right', anchor_y='top')
attribution.draw()
Expand Down Expand Up @@ -560,7 +560,7 @@ def labels(self, x, y, texts, font_name=FONT_NAME, font_size=14, anchor_x='left'
font_name=font_name,
font_size=font_size,
x=x[i], y=y[i],
anchor_x=anchor_x,
anchor_x=anchor_x,
anchor_y=anchor_y)
self._labels.append(lab)

Expand Down Expand Up @@ -663,7 +663,7 @@ def fit(self, bbox, max_zoom=MAX_ZOOM, force_zoom=None):
"""

BUFFER_FACTOR = 1.1

if force_zoom is not None:
self.zoom = force_zoom
else:
Expand Down