Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Cleanup and what's new item added for jpeg quality rcParam feature. #1940

merged 3 commits into from

2 participants


No description provided.

@pelson pelson merged commit bd241b5 into matplotlib:master

1 check was pending

Details default The Travis build is in progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 24, 2013
  1. Two small pep8 fixes.

    Daniel Hyams authored
  2. Fixed missing double-tick.

    Daniel Hyams authored
This page is out of date. Refresh to see the latest.
10 doc/users/whats_new.rst
@@ -27,7 +27,6 @@ new in matplotlib-1.3
to configure the default margins used. Previously they were
hard-coded to default to 0, default value of both rcParam values is 0.
New eventplot plot type
Todd Jennings added a :func:`~matplotlib.pyplot.eventplot` function to
@@ -52,7 +51,6 @@ Passing ``bbox_inches="tight"`` through to :func:`` now takes into accou
*all* artists on a figure - this was previously not the case and led to several
corner cases which did not function as expected.
Remember save directory
Martin Spacek made the save figure dialog remember the last directory saved
@@ -142,6 +140,14 @@ If you are using a custom backend, note that the `draw_text` renderer
method is now passed the location of the baseline, not the location of
the bottom of the text bounding box.
+``savefig.jpeg_quality`` added to rcParams
+``rcParam`` value ``savefig.jpeg_quality`` was added so that the user can
+configure the default quality used when a figure is written as a JPEG. The
+default quality is 95; previously, the default quality was 75. This change
+minimizes the artifacting inherent in JPEG images, particularly with images
+that have sharp changes in color as plots often do.
.. _whats-new-1-2-2:
new in matplotlib 1.2.2
1  lib/matplotlib/backends/
@@ -478,7 +478,6 @@ def _print_image(self, filename, format, *args, **kwargs):
options['quality'] = str(options['quality'])
if is_string_like(filename):
try:, format, options=options)
1  lib/matplotlib/backends/
@@ -1173,7 +1173,6 @@ def _print_image(self, filename, filetype, *args, **kwargs):
image = self.bitmap.ConvertToImage()
# Now that we have rendered into the bitmap, save it
# to the appropriate file type and clean up
if is_string_like(filename):
Something went wrong with that request. Please try again.