Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use axis tight to improve figure
  • Loading branch information
Soeren Sonnenburg committed Sep 11, 2011
1 parent b1edffb commit 73e9943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/undocumented/python_modular/graphical/svm.py
@@ -1,4 +1,4 @@
from pylab import figure,pcolor,scatter,contour,colorbar,show,subplot,plot,connect
from pylab import figure,pcolor,scatter,contour,colorbar,show,subplot,plot,connect,axis
from numpy.random import randn
from shogun.Features import *
from shogun.Classifier import *
Expand Down Expand Up @@ -28,6 +28,7 @@
x, y, z=util.compute_output_plot_isolines(svm, gk, train)
pcolor(x, y, z, shading='interp')
contour(x, y, z, linewidths=1, colors='black', hold=True)
axis('tight')

connect('key_press_event', util.quit)
show()
Expand Down

0 comments on commit 73e9943

Please sign in to comment.