Code Monkey home page Code Monkey logo

Comments (8)

bjarthur avatar bjarthur commented on June 14, 2024

in julia in general to suppress output put a semicolon at the end of the line. just like matlab.

from gadfly.jl.

nomadbl avatar nomadbl commented on June 14, 2024

Thanks for the quick response.
I did actually try it and it didn't work (line 14 in the link), so it's probably something with render?

from gadfly.jl.

bjarthur avatar bjarthur commented on June 14, 2024

try on line 15.

your syntax is unusual for lines 10-15. if you're trying to define a function, then it should be:

function preproces...
...
end

not sure what you're trying to do with a begin block.

from gadfly.jl.

nomadbl avatar nomadbl commented on June 14, 2024

Thanks for that additional catch.
I've tried the semicolon in all these places just now, still no dice...
Is there some way you would approach how to track down the print that's going on?
It seems to come from Compose since we're seeing Compose.Image here, no?

from gadfly.jl.

nomadbl avatar nomadbl commented on June 14, 2024

I can reproduce the print on the REPL with:

using Gadfly, Cairo, Fontconfig
pb = PipeBuffer();
p = plot(x=rand(100), Geom.point);
show(pb, MIME("image/png"), render(p));

from gadfly.jl.

nomadbl avatar nomadbl commented on June 14, 2024

I did a bit more investigating.
I think the output we are seeing is coming from this line in the Compose code or somewhere around that..
Still trying to figure out the code, so any help is welcome 😃

from gadfly.jl.

bjarthur avatar bjarthur commented on June 14, 2024

might try reducing your MWE to sth that just uses Compose and not Gadfly. if you can do that, then cross-post an issue to Compose.

from gadfly.jl.

nomadbl avatar nomadbl commented on June 14, 2024

I'm working on putting together that MWE, just stopping to mention this line
img.emit_on_finish && typeof(img.out) == IOBuffer && display(img)
In some cases, which is our case I suspect, img.emit_on_finish is true

from gadfly.jl.

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.