I am using Python and sublime text 3 on Macbook Air. When I use sublime text3 open the .py file, there are some annoying white rectangle around my codes and comments.
The rectangles around comments show:
block comment should start with '#'
The rectangles around the head of a function show:
too many blank lines
The rectangles around the keyword in python show:
unexpected spaces around keyword/parameter equals
The code is here
import pylab
#set line width
pylab.rcParams['lines.linewidth'] = 6
#set font size for titles
pylab.rcParams['axes.titlesize'] = 20
#set font size for labels on axes
pylab.rcParams['axes.labelsize'] = 20
#set size of numbers on x-axis
pylab.rcParams['xtick.major.size'] = 5
#set size of numbers on y-axis
pylab.rcParams['ytick.major.size'] = 5
def findPayment(loan, r, m):
"""Assumes: loan and r are floats, m an int
Returns the monthly payment for a mortgage of size
loan at a monthly rate of r for m months"""
return loan*((r*(1+r)**m)/((1+r)**m - 1))