GitHub user bustios opened a pull request:

    https://github.com/apache/zeppelin/pull/1267

    [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
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bustios/zeppelin ZEPPELIN-1261

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/1267.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1267
    
----
commit 3e0ef22121d3858206f9af1787bf79108f9f2ed6
Author: Paul Bustios <pbust...@gmail.com>
Date:   2016-08-02T20:55:56Z

    Bug fix in show_matplotlib

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to