GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gs distiller (of ps backend) uses ps2write device by leejjoon · Pull Request #92 · matplotlib/matplotlib

Conversation

@leejjoon

@leejjoon leejjoon commented Apr 25, 2011

Copy link
Copy Markdown
Contributor

With gs version 9 and later, the gs distiller (which currently uses "pswrite" device) produces very large file when image is included. This can be simply solved if we use "ps2write" device. Furthermore, "ps2write" device seems to be recommended.

http://www.cups.org/str.php?L3766

This patch checks the gs version, and uses "ps2write" device if appropriate.

However, using "ps2write" seems to result in an incorrect bbox.

#85 (comment)

The patch also fixes it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mdboom and others added 30 commits October 19, 2010 14:30
@mdboom
Merged revisions 8754-8756 via svnmerge from
72a37da
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8754 | jdh2358 | 2010-10-15 09:34:49 -0400 (Fri, 15 Oct 2010) | 1 line
  
  added chipy talk video and some notes about transforms
........
  r8755 | mdboom | 2010-10-19 08:44:14 -0400 (Tue, 19 Oct 2010) | 2 lines
  
  Make is_decade safe for non-finite values.
........
  r8756 | mdboom | 2010-10-19 10:16:23 -0400 (Tue, 19 Oct 2010) | 2 lines
  
  Fix LogFormatter, as reported by Gökhan Sever
........

svn path=/trunk/matplotlib/; revision=8757
@mdboom
Merged revisions 8758 via svnmerge from
4f4e2cc
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8758 | mdboom | 2010-10-22 11:00:31 -0400 (Fri, 22 Oct 2010) | 2 lines
  
  [3092255] Fix the direction of scroll event in Tk backend to match other backends.
........

svn path=/trunk/matplotlib/; revision=8759
@mdboom
Merged revisions 8760 via svnmerge from
72b5ff6
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8760 | mdboom | 2010-10-22 12:17:26 -0400 (Fri, 22 Oct 2010) | 2 lines
  
  Fix problems with funnily encoded fonts in PS backend.
........

svn path=/trunk/matplotlib/; revision=8761
@mdehoon
Implement close_event in the Mac OS X native backend.
e25abbe
svn path=/trunk/matplotlib/; revision=8762
@dopplershift
Fix radio_buttons example for event connections only taking a weak re…
416cce7
…ference.

svn path=/trunk/matplotlib/; revision=8763
@mdboom
Merged revisions 8764 via svnmerge from
10170f1
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8764 | mdboom | 2010-10-27 08:16:56 -0400 (Wed, 27 Oct 2010) | 1 line
  
  Update pcolormesh test reference image
........

svn path=/trunk/matplotlib/; revision=8765
@mdboom
Tell emacs more about our C++ files.
990b649
svn path=/trunk/matplotlib/; revision=8766
@mdboom
Merged revisions 8767 via svnmerge from
5d3d277
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8767 | mdboom | 2010-11-01 09:04:29 -0400 (Mon, 01 Nov 2010) | 2 lines
  
  Flush the clipboard after pasting to it so that the data remains after matplotlib is closed.  (Reported by Daniel Hyams on the mailing list).
........

svn path=/trunk/matplotlib/; revision=8768
@jdh2358
Merged revisions 8769-8770 via svnmerge from
337efa7
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8769 | jdh2358 | 2010-11-04 11:28:03 -0700 (Thu, 04 Nov 2010) | 1 line
  
  added recipes
........
  r8770 | jdh2358 | 2010-11-04 13:50:49 -0700 (Thu, 04 Nov 2010) | 1 line
  
  some updates to recipes
........

svn path=/trunk/matplotlib/; revision=8771
@leejjoon
Merged revisions 8772 via svnmerge from
9aabce6
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8772 | leejjoon | 2010-11-05 09:11:05 +0900 (Fri, 05 Nov 2010) | 1 line
  
  fix demo_text_path.py
........

svn path=/trunk/matplotlib/; revision=8773
@mdboom
Merged revisions 8774 via svnmerge from
f589dee
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8774 | mdboom | 2010-11-05 14:47:31 -0400 (Fri, 05 Nov 2010) | 1 line
  
  Fix 'unexpected end of path' errors encountered with this file in new version of Inkscape
........

svn path=/trunk/matplotlib/; revision=8775
@jkseppan
Merged revisions 8776 via svnmerge from
5d522db
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8776 | jouni | 2010-11-07 10:06:41 +0200 (Sun, 07 Nov 2010) | 2 lines
  
  Allow bypassing the download mechanism in get_sample_data
........

svn path=/trunk/matplotlib/; revision=8777
@mdboom
Merged revisions 8778 via svnmerge from
b2085ee
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8778 | mdboom | 2010-11-08 11:33:23 -0500 (Mon, 08 Nov 2010) | 1 line
  
  Fix bug where using zoom tool on polar plot prevents it from panning subsequently
........

svn path=/trunk/matplotlib/; revision=8779
@jdh2358
Merged revisions 8780 via svnmerge from
caabbdb
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8780 | jdh2358 | 2010-11-08 20:47:24 -0600 (Mon, 08 Nov 2010) | 1 line
  
  added context and nofigs options to support context between plot directive code blocks
........

svn path=/trunk/matplotlib/; revision=8781
@leejjoon
axes_grid1.FloatingAxisArtistHelper.get_line is made customizable
008b765
svn path=/trunk/matplotlib/; revision=8782
@leejjoon
fix pylab_examples/axes_zoom_effect.py
af46f05
svn path=/trunk/matplotlib/; revision=8783
@leejjoon
DraggableLegend can optionally update *bbox_to_anchor* instead of *loc*
baeeec0
svn path=/trunk/matplotlib/; revision=8784
@jdh2358
Merged revisions 8785 via svnmerge from
bc964db
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8785 | jdh2358 | 2010-11-09 07:23:25 -0800 (Tue, 09 Nov 2010) | 1 line
  
  fix a bug in context so plot directive will be forced to run (but not save) figs which are already cached
........

svn path=/trunk/matplotlib/; revision=8786
@leejjoon
rgbFace is correctly handled in patheffects
7c8bfb4
svn path=/trunk/matplotlib/; revision=8787
@leejjoon
Merged revisions 8788 via svnmerge from
b2e04af
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8788 | leejjoon | 2010-11-10 18:32:58 +0900 (Wed, 10 Nov 2010) | 1 line
  
  fix incorrect end position of FancyArrowPatch
........

svn path=/trunk/matplotlib/; revision=8789
@mdboom
Merged revisions 8790 via svnmerge from
d4ec93f
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8790 | mdboom | 2010-11-10 12:00:51 -0500 (Wed, 10 Nov 2010) | 2 lines
  
  Fix Agg complexity exception so it is thrown multiple times correctly.
........

svn path=/trunk/matplotlib/; revision=8791
@mdboom
Merged revisions 8792 via svnmerge from
e9bc21f
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8792 | mdboom | 2010-11-12 09:58:33 -0500 (Fri, 12 Nov 2010) | 1 line
  
  Clip all objects in Agg to the figure
........

svn path=/trunk/matplotlib/; revision=8793
@WeatherGod
Merged revisions 8794 via svnmerge from
470e595
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8794 | weathergod | 2010-11-12 10:10:21 -0600 (Fri, 12 Nov 2010) | 2 lines
  
  Fixed a bug in axis3d.py which caused axis labels to not be centered along the axis as well as correctly calculating the rotation angle needed to keep the axis label parallel to the axis irrespectively of the plot's aspect ratio.
........

svn path=/trunk/matplotlib/; revision=8795
@mdboom
Merged revisions 8796 via svnmerge from
2d079ce
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8796 | mdboom | 2010-11-12 11:56:38 -0500 (Fri, 12 Nov 2010) | 1 line
  
  Fix indentation
........

svn path=/trunk/matplotlib/; revision=8797
@leejjoon
Merged revisions 8798-8799 via svnmerge from
6084d95
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8798 | leejjoon | 2010-11-15 09:31:16 +0900 (Mon, 15 Nov 2010) | 1 line
  
  replace ax.transData in contour.py with proper get_transform call
........
  r8799 | leejjoon | 2010-11-15 09:31:56 +0900 (Mon, 15 Nov 2010) | 1 line
  
  Collection.update_from copies attributes of scalarmappable
........

svn path=/trunk/matplotlib/; revision=8800
@leejjoon
disable pstoeps when xpdf distiller is used
67654eb
svn path=/trunk/matplotlib/; revision=8801
@leejjoon
pstoeps skips a line starting with %%PageBoundingBox
8b5799d
svn path=/trunk/matplotlib/; revision=8802
@dopplershift
Some cosmetic changes to _spectral_helper(). Biggest change is to upd…
9be2127
…ate the documentation to indicate that NFFT should *not* be used for zero padding, otherwise scaling will be incorrect.

svn path=/trunk/matplotlib/; revision=8803
@dopplershift
Fix buglet where y would stay as pre-asarray() version of x if they w…
acfa6a1
…ere passed in as the same object.

svn path=/trunk/matplotlib/; revision=8804
@mdboom
Improve exception error message when converting Python bounding box t…
a4e57e2
…o C++

svn path=/trunk/matplotlib/; revision=8805
mdboom and others added 24 commits April 8, 2011 12:49
@mdboom
Merge branch 'minor_doc_fixes' of https://github.com/mdboom/matplotlib …
4bcec9c
…into mdboom-minor_doc_fixes

Conflicts:
	.gitignore
	CHANGELOG
	doc/faq/installing_faq.rst
	doc/sphinxext/inheritance_diagram.py
	doc/users/recipes.rst
@kaufman
add "|-|" to annnotation_guide table with options widthA,widthB
fd5e59a
	modified:   ../../doc/users/annotations_guide.rst
	modified:   patches.py
@kaufman
add "axis='xy'" option to grid() for independent control of each axi…
b73236b
…s' grid.

	modified:   lib/matplotlib/axes.py
	modified:   lib/matplotlib/pyplot.py
@mdboom
Merge branch 'test_reorg' of https://github.com/mdboom/matplotlib int…
0a0ac80
…o mdboom-test_reorg
@mdboom
Merge branch 'master' of github.com:matplotlib/matplotlib
b17c400
@efiring
Merge branch 'v1.0.x'
cc177c1
@leejjoon
Merge branch 'v1.0.x'
0b8847a
@leejjoon
axes_grid1: refactor HostAxesBase to utilize new legend handling fram…
b6e8d3b
…ework.
@leejjoon
recover old behavior for 'nearest' interpolation and introduces 'none'.
79ca159
close matplotlib#83
@mdboom
Merge branch 'grid_indep_axis_ctrl' of https://github.com/kaufman/mat…
e6dd97b
…plotlib into kaufman-grid_indep_axis_ctrl
@mdboom
Merge branch 'master' of github.com:matplotlib/matplotlib
7681cc4
@mdboom
Merge branch 'split-mathtext-tests' of https://github.com/mdboom/matp…
87bc328
…lotlib into mdboom-split-mathtext-tests
@WeatherGod
Merge branch 'v1.0.x'
62c650d
@WeatherGod
Corrected the version number a contourf3d feature was added in docs.
08ac8f0
@mdboom
Add function to write a math expression out to an image in any suppor…
0f3b000
…ted format.
@kaufman
change 'xy' axis option to 'both' to maintain consistency with other…
924393f
… functions.

	modified:   axes.py
	modified:   pyplot.py
@efiring
Merge branch 'v1.0.x'
5314246
@mdboom
Merge branch 'math_image' of https://github.com/mdboom/matplotlib int…
3c43d83
…o mdboom-math_image
@leejjoon
axes_grid1 toolkits now supports gridspec
0a2a0f9
@efiring
bug in tests: don't use random data for image comparison tests
ef87548
@efiring
Merge branch 'grid_indep_axis_ctrl' of http://github.com/kaufman/matp…
545044a
…lotlib
@efiring
cleanup: remove unused 'units' key from rcParams
9b02ecd
@leejjoon
Merge branch 'v1.0.x'
9ca2c41
@leejjoon
gs distiller of ps backend uses ps2write device
4439eb3
ddale
ddale reviewed Apr 25, 2011
View reviewed changes
Comment thread lib/matplotlib/backends/backend_ps.py Outdated

@ddale ddale Apr 25, 2011

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I might have suggested instantiating a single instance:

gs_backend_helper = _GsBackendHelper()

and converting all of those classmethods to (possibly memoized) read-only properties:

gs_exe
gs_version
has_ps2write

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@astrofrog

astrofrog commented Apr 26, 2011

Copy link
Copy Markdown
Contributor

@leejjoon - this fixes my issues with ghostscript 9.0.2

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

leejjoon added 2 commits May 2, 2011 11:08
@leejjoon
restore pstopes on xpdf distiller
9ffa979
@leejjoon
make the ps_backend_helper an instance of PsBackendHelper class
7502b0e
@leejjoon
leejjoon merged commit 7502b0e into matplotlib:master May 9, 2011
@richbwood richbwood mentioned this pull request Dec 19, 2012
test_pcolormesh hangs #1609
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

16 participants

@leejjoon @astrofrog @ddale @tacaswell @dsentinel @mdboom @mdehoon @dopplershift @jdh2358 @jkseppan @WeatherGod @ivanov @efiring @faucon @astropy-buildbot @kaufman
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.