[ZEPPELIN-1261] Bug fix in z.show() for matplotlib graphs
[ZEPPELIN-1261] Bug fix in z.show() for matplotlib graphs

### What is this PR for?
Bug fix in z.show() for matplotlib graphs and code refactoring

### What type of PR is it?
Bug Fix

### What is the Jira issue?
[ZEPPELIN-1261](https://issues.apache.org/jira/browse/ZEPPELIN-1261)

### How should this be tested?
```
%python
import matplotlib.pyplot as plt

x = [1,2,3,4,5]
y = [6,7,8,9,0]

plt.plot(x, y, marker="o")
z.show(plt, height="20em")
plt.close()
```
```
%python
import matplotlib.pyplot as plt

x = [1,2,3,4,5]
y = [6,7,8,9,0]

plt.plot(x, y, marker="o")
z.show(plt, height="300px")
plt.close()
```

### Screenshots (if appropriate)
![plot](https://dl.dropboxusercontent.com/u/20947972/z.show.height.example.png)

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Paul Bustios <pbustios@gmail.com>

Closes #1267 from bustios/ZEPPELIN-1261 and squashes the following commits:

82c631a [Paul Bustios] Add 100% as a default value for width and height z.show() parameters
3e0ef22 [Paul Bustios] Bug fix in show_matplotlib

vrlo/zeppelin,sctincman/zeppelin,lresende/incubator-zeppelin,radicalbit/incubator-zeppelin,joroKr21/incubator-zeppelin,jongyoul/incubator-zeppelin,raysteam/zeppelin,sctincman/zeppelin,herval/zeppelin,karuppayya/zeppelin,prabhjyotsingh/incubator-zeppelin,AlexanderShoshin/zeppelin,openthings/zeppelin,Leemoonsoo/incubator-zeppelin,chilang/zeppelin,r-kamath/zeppelin,zetaris/zeppelin,tinkoff-dwh/zeppelin,apache/incubator-zeppelin,Leemoonsoo/zeppelin,astroshim/zeppelin,sravan-s/zeppelin,digitalreasoning/incubator-zeppelin,prabhjyotsingh/zeppelin,cquptEthan/incubator-zeppelin,tinkoff-dwh/zeppelin,tinkoff-dwh/zeppelin,benoyantony/zeppelin,openthings/zeppelin,chilang/zeppelin,fogbeam/zeppelin_mirror,cfries/zeppelin,tzolov/incubator-zeppelin,datalayer/zeppelin-datalayer,tillrohrmann/incubator-zeppelin,mwkang/zeppelin,lresende/incubator-zeppelin,apache/zeppelin,anthonycorbacho/incubator-zeppelin,YuanGunGun/zeppelin,vrlo/zeppelin,mfelgamal/zeppelin,datalayer/zeppelin,IceKhan13/zeppelin,cfries/zeppelin,VipinRathor/zeppelin,digitalreasoning/incubator-zeppelin,cfries/zeppelin,spacewalkman/incubator-zeppelin,astroshim/zeppelin,fogbeam/zeppelin_mirror,astroshim/zeppelin,astroshim/incubator-zeppelin,cfries/zeppelin,openthings/zeppelin,vgmartinez/incubator-zeppelin,jongyoul/zeppelin,vgmartinez/incubator-zeppelin,vipul1409/zeppelin,Altiscale/incubator-zeppelin,herval/zeppelin,anthonycorbacho/incubator-zeppelin,apache/incubator-zeppelin,sergeymazin/zeppelin,minahlee/zeppelin,tzolov/incubator-zeppelin,Nova-Boy/zeppelin,1ambda/zeppelin,jongyoul/zeppelin,datalayer/zeppelin,pravin-dsilva/zeppelin,jongyoul/incubator-zeppelin,r-kamath/zeppelin,Altiscale/incubator-zeppelin,prabhjyotsingh/zeppelin,sohaibiftikhar/zeppelin,raysteam/zeppelin,hammertank/zeppelin,hkropp/incubator-zeppelin,yu74n/zeppelin,yu74n/zeppelin,prabhjyotsingh/zeppelin,r-kamath/zeppelin,datalayer/zeppelin-datalayer,yu74n/zeppelin,doanduyhai/incubator-zeppelin,cquptEthan/incubator-zeppelin,r-kamath/zeppelin,volumeint/zeppelin,VipinRathor/zeppelin,Madhuka/incubator-zeppelin,namanmishra91/zeppelin,mwpenny/zeppelin-esri,1ambda/zeppelin,joroKr21/incubator-zeppelin,AlexanderShoshin/zeppelin,astroshim/incubator-zeppelin,Leemoonsoo/incubator-zeppelin,tillrohrmann/incubator-zeppelin,spacewalkman/incubator-zeppelin,SachinJanani/zeppelin,yu74n/zeppelin,pellmont/zeppelin,VipinRathor/zeppelin,yu74n/zeppelin,vgmartinez/incubator-zeppelin,doanduyhai/incubator-zeppelin,hkropp/incubator-zeppelin,radicalbit/incubator-zeppelin,minahlee/zeppelin,r-kamath/incubator-zeppelin,Leemoonsoo/zeppelin,namanmishra91/zeppelin,Madhuka/incubator-zeppelin,Nova-Boy/zeppelin,tinkoff-dwh/zeppelin,fogbeam/zeppelin_mirror,SachinJanani/zeppelin,sergeymazin/zeppelin,SarunasG/zeppelin-oidc,fogbeam/zeppelin_mirror,AlexanderShoshin/zeppelin,joroKr21/incubator-zeppelin,mfelgamal/zeppelin,Leemoonsoo/incubator-zeppelin,karuppayya/zeppelin,doanduyhai/incubator-zeppelin,IceKhan13/zeppelin,apache/zeppelin,Nova-Boy/zeppelin,prabhjyotsingh/incubator-zeppelin,Madhuka/incubator-zeppelin,Nova-Boy/zeppelin,prabhjyotsingh/zeppelin,r-kamath/incubator-zeppelin,soralee/zeppelin,SachinJanani/zeppelin,hammertank/zeppelin,doanduyhai/incubator-zeppelin,joroKr21/incubator-zeppelin,1ambda/zeppelin,r-kamath/incubator-zeppelin,Leemoonsoo/incubator-zeppelin,apache/zeppelin,mwpenny/zeppelin-esri,rconline/zeppelin,prabhjyotsingh/incubator-zeppelin,Leemoonsoo/incubator-zeppelin,pravin-dsilva/zeppelin,astroshim/zeppelin,vrlo/zeppelin,minahlee/zeppelin,datalayer/zeppelin,tzolov/incubator-zeppelin,prabhjyotsingh/incubator-zeppelin,raysteam/zeppelin,lresende/incubator-zeppelin,mwpenny/zeppelin-esri,minahlee/incubator-zeppelin,jongyoul/zeppelin,tzolov/incubator-zeppelin,cfries/zeppelin,zjffdu/zeppelin,pellmont/zeppelin,1ambda/zeppelin,sohaibiftikhar/zeppelin,mwpenny/zeppelin-esri,mfelgamal/zeppelin,pellmont/zeppelin,sravan-s/zeppelin,Leemoonsoo/zeppelin,digitalreasoning/incubator-zeppelin,jongyoul/incubator-zeppelin,SachinJanani/zeppelin,hkropp/incubator-zeppelin,Leemoonsoo/zeppelin,chilang/zeppelin,namanmishra91/zeppelin,r-kamath/incubator-zeppelin,wary/zeppelin,pellmont/zeppelin,rconline/zeppelin,tzolov/incubator-zeppelin,sohaibiftikhar/zeppelin,Leemoonsoo/incubator-zeppelin,SachinJanani/zeppelin,zjffdu/zeppelin,Madhuka/incubator-zeppelin,cquptEthan/incubator-zeppelin,yorek/zeppelin,sergeymazin/zeppelin,Leemoonsoo/zeppelin,astroshim/zeppelin,onkarshedge/incubator-zeppelin,vipul1409/zeppelin,datalayer/zeppelin-datalayer,tzolov/incubator-zeppelin,Altiscale/incubator-zeppelin,sctincman/zeppelin,tillrohrmann/incubator-zeppelin,karuppayya/zeppelin,minahlee/zeppelin,vrlo/zeppelin,jongyoul/zeppelin,hkropp/incubator-zeppelin,datalayer/zeppelin-datalayer,apache/incubator-zeppelin,IceKhan13/zeppelin,yorek/zeppelin,prabhjyotsingh/zeppelin,yorek/zeppelin,benoyantony/zeppelin,sergeymazin/zeppelin,r-kamath/incubator-zeppelin,rconline/zeppelin,pellmont/zeppelin,apache/zeppelin,apache/incubator-zeppelin,mfelgamal/zeppelin,herval/zeppelin,volumeint/zeppelin,joroKr21/incubator-zeppelin,Madhuka/incubator-zeppelin,mwpenny/zeppelin-esri,fogbeam/zeppelin_mirror,spacewalkman/incubator-zeppelin,rconline/zeppelin,anthonycorbacho/incubator-zeppelin,IceKhan13/zeppelin,datalayer/zeppelin,anthonycorbacho/incubator-zeppelin,pellmont/zeppelin,cfries/zeppelin,namanmishra91/zeppelin,lresende/incubator-zeppelin,chilang/zeppelin,astroshim/incubator-zeppelin,volumeint/zeppelin,tillrohrmann/incubator-zeppelin,prabhjyotsingh/incubator-zeppelin,onkarshedge/incubator-zeppelin,pravin-dsilva/zeppelin,digitalreasoning/incubator-zeppelin,YuanGunGun/zeppelin,prabhjyotsingh/zeppelin,benoyantony/zeppelin,yorek/zeppelin,yu74n/zeppelin,wary/zeppelin,jongyoul/incubator-zeppelin,openthings/zeppelin,soralee/zeppelin,mwkang/zeppelin,fogbeam/zeppelin_mirror,volumeint/zeppelin,tillrohrmann/incubator-zeppelin,onkarshedge/incubator-zeppelin,radicalbit/incubator-zeppelin,IceKhan13/zeppelin,sohaibiftikhar/zeppelin,soralee/zeppelin,mwkang/zeppelin,Altiscale/incubator-zeppelin,digitalreasoning/incubator-zeppelin,YuanGunGun/zeppelin,tinkoff-dwh/zeppelin,benoyantony/zeppelin,SarunasG/zeppelin-oidc,zjffdu/zeppelin,YuanGunGun/zeppelin,sergeymazin/zeppelin,astroshim/incubator-zeppelin,cfries/zeppelin,yu74n/zeppelin,benoyantony/zeppelin,sravan-s/zeppelin,openthings/zeppelin,vipul1409/zeppelin,anthonycorbacho/incubator-zeppelin,sravan-s/zeppelin,Nova-Boy/zeppelin,r-kamath/zeppelin,Leemoonsoo/zeppelin,soralee/zeppelin,sohaibiftikhar/zeppelin,joroKr21/incubator-zeppelin,openthings/zeppelin,zetaris/zeppelin,pellmont/zeppelin,1ambda/zeppelin,VipinRathor/zeppelin,benoyantony/zeppelin,sravan-s/zeppelin,wary/zeppelin,datalayer/zeppelin,vrlo/zeppelin,tinkoff-dwh/zeppelin,cquptEthan/incubator-zeppelin,lresende/incubator-zeppelin,zetaris/zeppelin,VipinRathor/zeppelin,fogbeam/zeppelin_mirror,soralee/zeppelin,minahlee/incubator-zeppelin,vipul1409/zeppelin,pravin-dsilva/zeppelin,1ambda/zeppelin,hammertank/zeppelin,spacewalkman/incubator-zeppelin,soralee/zeppelin,digitalreasoning/incubator-zeppelin,karuppayya/zeppelin,karuppayya/zeppelin,tillrohrmann/incubator-zeppelin,yorek/zeppelin,spacewalkman/incubator-zeppelin,herval/zeppelin,raysteam/zeppelin,Altiscale/incubator-zeppelin,VipinRathor/zeppelin,AlexanderShoshin/zeppelin,r-kamath/incubator-zeppelin,VipinRathor/zeppelin,SarunasG/zeppelin-oidc,sravan-s/zeppelin,wary/zeppelin,AlexanderShoshin/zeppelin,jongyoul/incubator-zeppelin,raysteam/zeppelin,datalayer/zeppelin,Nova-Boy/zeppelin,herval/zeppelin,anthonycorbacho/incubator-zeppelin,SarunasG/zeppelin-oidc,minahlee/zeppelin,YuanGunGun/zeppelin,zetaris/zeppelin,minahlee/incubator-zeppelin,minahlee/zeppelin,herval/zeppelin,vipul1409/zeppelin,sergeymazin/zeppelin,vgmartinez/incubator-zeppelin,hammertank/zeppelin,rconline/zeppelin,Leemoonsoo/zeppelin,volumeint/zeppelin,chilang/zeppelin,lresende/incubator-zeppelin,SarunasG/zeppelin-oidc,astroshim/zeppelin,Nova-Boy/zeppelin,onkarshedge/incubator-zeppelin,Madhuka/incubator-zeppelin,sctincman/zeppelin,minahlee/incubator-zeppelin,vrlo/zeppelin,mfelgamal/zeppelin,namanmishra91/zeppelin,soralee/zeppelin,astroshim/zeppelin,radicalbit/incubator-zeppelin,IceKhan13/zeppelin,AlexanderShoshin/zeppelin,rconline/zeppelin,onkarshedge/incubator-zeppelin,r-kamath/zeppelin,spacewalkman/incubator-zeppelin,astroshim/incubator-zeppelin,mwpenny/zeppelin-esri,apache/zeppelin,mwkang/zeppelin,mwkang/zeppelin,pravin-dsilva/zeppelin,hammertank/zeppelin,raysteam/zeppelin,yorek/zeppelin,anthonycorbacho/incubator-zeppelin,onkarshedge/incubator-zeppelin,radicalbit/incubator-zeppelin,prabhjyotsingh/incubator-zeppelin,vrlo/zeppelin,apache/zeppelin,openthings/zeppelin,benoyantony/zeppelin,sctincman/zeppelin,pravin-dsilva/zeppelin,cquptEthan/incubator-zeppelin,minahlee/incubator-zeppelin,IceKhan13/zeppelin,zjffdu/zeppelin,jongyoul/zeppelin,doanduyhai/incubator-zeppelin,zjffdu/zeppelin,apache/incubator-zeppelin,karuppayya/zeppelin,sohaibiftikhar/zeppelin,digitalreasoning/incubator-zeppelin,vgmartinez/incubator-zeppelin,YuanGunGun/zeppelin,Leemoonsoo/zeppelin,pravin-dsilva/zeppelin,cquptEthan/incubator-zeppelin,tillrohrmann/incubator-zeppelin,mwkang/zeppelin,radicalbit/incubator-zeppelin,sohaibiftikhar/zeppelin,joroKr21/incubator-zeppelin,mfelgamal/zeppelin,apache/zeppelin,vipul1409/zeppelin,volumeint/zeppelin,karuppayya/zeppelin,1ambda/zeppelin,SarunasG/zeppelin-oidc,sravan-s/zeppelin,namanmishra91/zeppelin,cquptEthan/incubator-zeppelin,vgmartinez/incubator-zeppelin,zjffdu/zeppelin,apache/incubator-zeppelin,SachinJanani/zeppelin,hammertank/zeppelin,chilang/zeppelin,vipul1409/zeppelin,sctincman/zeppelin,chilang/zeppelin,raysteam/zeppelin,sctincman/zeppelin,namanmishra91/zeppelin,hammertank/zeppelin,yorek/zeppelin,Altiscale/incubator-zeppelin,AlexanderShoshin/zeppelin,sergeymazin/zeppelin,prabhjyotsingh/zeppelin,hkropp/incubator-zeppelin,jongyoul/zeppelin,jongyoul/zeppelin,zetaris/zeppelin,wary/zeppelin,datalayer/zeppelin,spacewalkman/incubator-zeppelin,doanduyhai/incubator-zeppelin,onkarshedge/incubator-zeppelin,mwkang/zeppelin,zjffdu/zeppelin,volumeint/zeppelin,herval/zeppelin,lresende/incubator-zeppelin,minahlee/zeppelin,hkropp/incubator-zeppelin,doanduyhai/incubator-zeppelin,tinkoff-dwh/zeppelin,mfelgamal/zeppelin,SachinJanani/zeppelin,radicalbit/incubator-zeppelin,wary/zeppelin,joroKr21/incubator-zeppelin,zetaris/zeppelin,Madhuka/incubator-zeppelin,r-kamath/zeppelin,astroshim/incubator-zeppelin,YuanGunGun/zeppelin,jongyoul/incubator-zeppelin,mwpenny/zeppelin-esri,SarunasG/zeppelin-oidc,wary/zeppelin,rconline/zeppelin,r-kamath/incubator-zeppelin,zetaris/zeppelin