Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DOC refactored installation instruction #8240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 23, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use more https in install docs.
  • Loading branch information
QuLogic authored and NelleV committed Mar 20, 2017
commit f55ed17f2c7da976d712e763e6aaf2824fab79b5
15 changes: 7 additions & 8 deletions 15 INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Windows
-------

We strongly recommend using `scipy-stack compatible Python distributions
<http://www.scipy.org/install.html>`_ such as WinPython, Python(x,y),
<https://www.scipy.org/install.html>`_ such as WinPython, Python(x,y),
Enthought Canopy, or Continuum Anaconda, which have Matplotlib and its
dependencies, plus other useful packages, preinstalled.

Expand Down Expand Up @@ -191,10 +191,10 @@ install the following:

* `ffmpeg <https://www.ffmpeg.org/>`__/`avconv
<https://libav.org/avconv.html>`__ or `mencoder
<http://www.mplayerhq.hu/design7/news.html>`__ (for saving movies);
* `ImageMagick <http://www.imagemagick.org/script/index.php>`__ (for saving
<https://mplayerhq.hu/design7/news.html>`__ (for saving movies);
* `ImageMagick <https://www.imagemagick.org/script/index.php>`__ (for saving
animated gifs);
* `Pillow <http://python-pillow.org/>`__ (for a larger selection of image
* `Pillow <https://python-pillow.org/>`__ (for a larger selection of image
file format: JPEG, BMP, and TIFF image files);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"formats". Also only needed for reading, IIRC?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be surprising. I think it is for IO, but both reading and writing though I have no clue on that one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eh "I think it is for all IO, so both reading and writing"…

Copy link
Contributor

@anntzer anntzer Mar 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can write to all these image formats, can we?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed we can't:

In [1]: fig, ax = plt.subplots()
a
In [2]: ax.plot(np.arange(100))
Out[2]: [<matplotlib.lines.Line2D at 0x7fe9a1b02048>]

In [3]: fig.savefig("test.jpeg")

In [4]: fig.savefig("test.bmp")
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-4-25b9508e5148> in <module>()
----> 1 fig.savefig("test.bmp")

/home/nelle/Projects/matplotlib/lib/matplotlib/figure.py in savefig(self, *args, **kwargs)
   1761             self.set_frameon(frameon)
   1762 
-> 1763         self.canvas.print_figure(*args, **kwargs)
   1764 
   1765         if frameon:

/home/nelle/Projects/matplotlib/lib/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs)
   2132 
   2133         # get canvas object and print method for format
-> 2134         canvas = self._get_output_canvas(format)
   2135         print_method = getattr(canvas, 'print_%s' % format)
   2136 

/home/nelle/Projects/matplotlib/lib/matplotlib/backend_bases.py in _get_output_canvas(self, format)
   2075         raise ValueError('Format "%s" is not supported.\n'
   2076                          'Supported formats: '
-> 2077                          '%s.' % (format, ', '.join(formats)))
   2078 
   2079     def print_figure(self, filename, dpi=None, facecolor=None, edgecolor=None,

ValueError: Format "bmp" is not supported.
Supported formats: eps, jpeg, jpg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, more specifically, we can't write to BMP, but the rest is apparently fine (I do have pillow installed).

* `Latex <https://miktex.org/>`_ and `GhostScript <https://ghostscript.com/download/>`_
(for rendering text with LaTeX);
Expand Down Expand Up @@ -298,7 +298,7 @@ requirements (png, freetype,...) are statically linked and therefore not needed
install.

The commands below assume that you can compile a native python lib for the python version of your
choice. See `this howto <http://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/>`_
choice. See `this howto <https://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/>`_
how to install and setup such environments. If in doubt: use Python >= 3.5 as it mostly works
without fiddling with environment variables::

Expand Down Expand Up @@ -333,9 +333,8 @@ you already created and activated the conda environment.
Conda packages
^^^^^^^^^^^^^^

This needs a `working installed C
compiler
<http://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/>`_
This needs a `working installed C compiler
<https://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/>`_
for the version of python you are compiling the package for but you don't need
to setup the environment variables::

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.