From 87598dcf270f98dfa2d85bd3e418befd5ca2f0e9 Mon Sep 17 00:00:00 2001 From: Visakhsebastian <37535440+Visakhsebastian@users.noreply.github.com> Date: Tue, 30 Oct 2018 21:16:50 +0530 Subject: [PATCH] Removed spaces --- assignment1/Figure_Tool.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/assignment1/Figure_Tool.py b/assignment1/Figure_Tool.py index f3f7313..a1a71fe 100644 --- a/assignment1/Figure_Tool.py +++ b/assignment1/Figure_Tool.py @@ -14,8 +14,6 @@ def font(family,weight,size): 'weight' : weight, 'size' : size} matplotlib.rc('font', **font) - - def legd(ax,place,size) : # given the handle, return a legend import matplotlib.pyplot as plt @@ -39,8 +37,7 @@ def cbar_p(mesh,axs,label,tick): cbar = plt.colorbar(mesh,ax=axs,cax=cax) cbar.ax.set_title(label,fontsize=18) cbar.set_ticks(tick) - cbar.set_ticklabels(tick) - + cbar.set_ticklabels(tik) def tick(ax,size,xticks,yticks,xlabel,ylabel) : ax.set_xlim(0,6) ax.set_ylim(0 ,2) @@ -56,7 +53,6 @@ def tick(ax,size,xticks,yticks,xlabel,ylabel) : tick.label.set_fontsize(size) def make_colormap(seq): - import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as mcolors @@ -82,7 +78,6 @@ def tick_1(ax,size) : for tick in ax.yaxis.get_major_ticks(): tick.label.set_fontsize(size) - def legd_Scatter(ax,place,size) : # given the handle, return a legend legend = ax.legend(loc=place, frameon=False)