Skip to content

Conversation

@ImportanceOfBeingErnest
Copy link
Member

In order for the example to work in python 3, the file needs to be read in binary mode: open(afm_fname, 'rb')

Issue description can be found here: https://stackoverflow.com/questions/48793711/calculating-the-width-height-of-strings-on-python

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

In order for the example to work in python 3, the file needs to be read in binary mode: `open(afm_fname, 'rb')`
@anntzer anntzer added this to the v2.2-doc milestone Feb 15, 2018
@anntzer anntzer merged commit 270304a into matplotlib:master Feb 15, 2018
dstansby added a commit that referenced this pull request Feb 15, 2018
@QuLogic QuLogic modified the milestones: v2.2-doc, v2.2.0 Feb 15, 2018
@timhoffm
Copy link
Member

timhoffm commented Mar 4, 2018

Sorry for the noise. I was accidentally on an older branch.

@ImportanceOfBeingErnest ImportanceOfBeingErnest deleted the patch-8 branch May 10, 2018 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants