Question: I am new to the world of mac. In python we I want to visualize a data, I use matplotlib's pyplot to generate a plot but when I do pyplot.show() it creates a new window. This behavior also happens inside my ipython notebook too - see image below. I wanted it to embed the image inside the notebook.

How can I correct this ?

![This is what it looks like](https://i.stack.imgur.com/lLxAz.png)

Answer: 
It appears this is working correctly and gives the same result if you use:

```
element.style.height

```

Since no inline style or CSS height is set on the element a blank line is shown. Instead of relying on the style you can get the HTML elements height directly.

```
console.log(element[0].offsetHeight);

```

<http://plnkr.co/edit/03YWwjBjYpid4fVmDxlM?p=preview>

[How do I retrieve an HTML element's actual width and height?](https://stackoverflow.com/questions/294250/how-do-i-retrieve-an-html-elements-actual-width-and-height)
The small wrapper around element provided by angular allows you to ask for properties, so:

```
element.prop('offsetHeight');

```

Will just work fine, see: <http://plnkr.co/edit/pFHySDo7hjEcMKCqGuiV?p=preview>