Skip to content

Commit

Permalink
Increased image size
Browse files Browse the repository at this point in the history
The previous scale of drawing (plot) was good to have code and plot
side-by-side in Spyder IDE. The size stopped being enough when I created
an animation. It was small and the quality was poor. Here I doubled the size
and increased the font's size.
  • Loading branch information
lukaszmn committed Jul 15, 2019
1 parent 80d49ae commit 0fbcfa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MazeDrawer.py
Expand Up @@ -46,9 +46,11 @@ def __clearLine(self, x1, y1, x2, y2):


def __drawBackground(self, ratio):
scale = max(self.__size_x, self.__size_y) / ratio
scale = max(self.__size_x, self.__size_y) / ratio / 2
pyplot.figure(figsize=(self.__size_x / scale, self.__size_y / scale))

pyplot.rcParams['font.size'] = 20

#pyplot.xticks([])
#pyplot.yticks([])
pyplot.style.use('dark_background')
Expand Down

0 comments on commit 0fbcfa8

Please sign in to comment.