|
772 | 772 | "editable": true
|
773 | 773 | },
|
774 | 774 | "source": [
|
| 775 | + "```python\n", |
775 | 776 | "fig.suptitle('title') # big figure title\n",
|
776 | 777 | "fig.subplots_adjust(bottom=0.1,\n",
|
777 | 778 | " right=0.8,\n",
|
|
791 | 792 | "ax.legend(loc='upper center') # activate legend\n",
|
792 | 793 | "ax.grid(True, which='both') # activate grid\n",
|
793 | 794 | "bbox = ax.get_position() # returns the axes bounding box\n",
|
794 |
| - "bbox.x0 + bbox.width # bounding box parameters" |
| 795 | + "bbox.x0 + bbox.width # bounding box parameters\n", |
| 796 | + "```" |
795 | 797 | ]
|
796 | 798 | },
|
797 | 799 | {
|
|
811 | 813 | "editable": true
|
812 | 814 | },
|
813 | 815 | "source": [
|
| 816 | + "```python\n", |
814 | 817 | "ax.plot(x,y, '-o', c='red', lw=2, label='bla') # plots a line\n",
|
815 | 818 | "ax.scatter(x,y, s=20, c=color) # scatter plot\n",
|
816 | 819 | "ax.pcolormesh(xx,yy,zz, shading='gouraud') # fast colormesh function\n",
|
|
819 | 822 | "ax.contourf(xx,yy,zz, vmin=2, vmax=4) # filled contours plot\n",
|
820 | 823 | "n, bins, patch = ax.hist(x, 50) # histogram\n",
|
821 | 824 | "ax.imshow(matrix, origin='lower', extent=(x1, x2, y1, y2)) # show image\n",
|
822 |
| - "ax.specgram(y, FS=0.1, noverlap=128, scale='linear') # plot a spectrogram" |
| 825 | + "ax.specgram(y, FS=0.1, noverlap=128, scale='linear') # plot a spectrogram\n", |
| 826 | + "```" |
823 | 827 | ]
|
824 | 828 | }
|
825 | 829 | ],
|
|
840 | 844 | "name": "python",
|
841 | 845 | "nbconvert_exporter": "python",
|
842 | 846 | "pygments_lexer": "ipython3",
|
843 |
| - "version": "3.5.2" |
| 847 | + "version": "3.6.2" |
844 | 848 | }
|
845 | 849 | },
|
846 | 850 | "nbformat": 4,
|
847 |
| - "nbformat_minor": 1 |
| 851 | + "nbformat_minor": 2 |
848 | 852 | }
|
0 commit comments