HOME/Articles/

matplotlib example importing libs (snippet)

Article Outline

Python matplotlib example 'importing libs'

Modules used in program:

  • import tensorflow as tf
  • import numpy as np
  • import shutil
  • import os
  • import matplotlib.pyplot as plt

python importing libs

Python matplotlib example: importing libs

from __future__ import division, print_function

%matplotlib inline
from IPython.display import set_matplotlib_formats
set_matplotlib_formats('svg')

import matplotlib.pyplot as plt
import os
import shutil
import numpy as np
import tensorflow as tf
from tensorflow.python.ops import functional_ops