Giter VIP home page Giter VIP logo

Comments (3)

jheinen avatar jheinen commented on August 11, 2024

Thanks for the hint. I'll check this ASAP.

I think "High-Level Plotting / GR framework" is a good place for a blurb, although the main idea behind Gr's MPL backend was improving performance and interoperability. May be I find a better place. I'll let you know ...

from gr.

jheinen avatar jheinen commented on August 11, 2024

I made some tests and it seems that GR is compatible with mpl master - so there is no need for urgent action. I will have to take a closer look to the new methods (e.g. draw_idle), may be they will allow further performance improvements.

BTW: I had to patch matplotlib/__init__.py to get Matpltlib running on OS X (probably due to a bug in getdefaultlocale() - I don't know, but checking the result and using "utf-8" as the default encoding helped):

@contextlib.contextmanager
def _open_file_or_url(fname):
    if is_url(fname):
        f = urlopen(fname)
        yield _url_lines(f)
        f.close()
    else:
        fname = os.path.expanduser(fname)
        encoding = locale.getdefaultlocale()[1]
        if encoding == None:
            encoding = "utf-8"
        with io.open(fname, encoding=encoding) as f:
            yield f

Glad to see that Florian's PR (matplotlib/matplotlib#3710) is already merged.

from gr.

tacaswell avatar tacaswell commented on August 11, 2024

Good to hear.

Can you make an isses/pr on the mpl side with that change? We have a number
of devs who work on this osx so i find it very worrying that there is an
import bug.

draw_idle is very old, it's importance had just increased recently.

On Thu, Sep 3, 2015, 08:27 Josef Heinen [email protected] wrote:

I made some tests and it seems that GR is compatible with mpl master - so
there is no need for urgent action. I will have to take a closer look to
the new methods (e.g. draw_idle), may be they will allow further
performance improvements.

BTW: I had to patch matplotlib/init.py to get Matpltlib running on OS
X (probably due to a bug in getdefaultlocale() - I don't know, but
checking the result and using "utf-8" as the default encoding helped):

@contextlib.contextmanager
def _open_file_or_url(fname):
if is_url(fname):
f = urlopen(fname)
yield _url_lines(f)
f.close()
else:
fname = os.path.expanduser(fname)
encoding = locale.getdefaultlocale()[1]
if encoding == None:
encoding = "utf-8"
with io.open(fname, encoding=encoding) as f:
yield f

Glad to see that Florian's PR (matplotlib/matplotlib#3710
matplotlib/matplotlib#3710) is already merged.


Reply to this email directly or view it on GitHub
#16 (comment).

from gr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.