Git Product home page Git Product logo

Comments (4)

SimonDanisch avatar SimonDanisch commented on June 29, 2024

That code hasn't seen any love in a long time :D In next2 it looks quite a bit better. I fixed your example in the newest commit!

n = 100
xv, yv = collect(Float32, 1:n), collect(Float32, 1:n)
x=Signal(xv*ones(yv)')
y=Signal(ones(xv)*yv')

z= map((x,y)->exp(x)*cos(y),x,y)
# or
# z= map((x,y)->map((x,y)-> exp(x)*cos(y), x,y),x,y)
# or
# x=Signal(xv*ones(yv)')
# y=Signal(ones(xv)*yv')
# map(i->map((x,y) -> exp(x)*cos(y)) ,loop(1:10))


viz = visualize(x, y, z, :surface)

from glvisualize.jl.

SimonDanisch avatar SimonDanisch commented on June 29, 2024

You need to do something about the Inf32, though ... And maybe scale things a bit! Either the data, or via visualize(x,y,z, :suface, model=scalematrix(Vec3f0(0.003)))

from glvisualize.jl.

dlfivefifty avatar dlfivefifty commented on June 29, 2024

Sorry, the example was silly: it should be plotted for x=y=0.:.1:1.

Sent from my iPhone

On 21 Dec 2015, at 04:25, Simon [email protected] wrote:

You need to do something about the Inf32, though ... And maybe scale things a bit! Either the data, or via visualize(x,y,z, :suface, model=scalematrix(Vec3f0(0.003)))


Reply to this email directly or view it on GitHub.

from glvisualize.jl.

SimonDanisch avatar SimonDanisch commented on June 29, 2024

Is this solved?

from glvisualize.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.