Skip to content
Discussion options

You must be logged in to vote

Hi Owen, two options:

For the second one (func2) you will need to use the development version:
pip install -U git+https://github.com/marcomusy/vedo.git

from vedo import Plotter, Sphere, Image, settings
from vedo.pyplot import histogram


def func1(w, evt=""):
    d = data[data > w.value]
    if len(d) == 0: return
    hi = histogram(
        d, 
        c="blue4",
        alpha=0.7,
        aspect=16/9,
        title="Histogram",
        xtitle='measured variable',
        ytitle='frequency',    
        label='my histogram',
        mc='red5',
    )
    hi.add_legend(s=1.2, alpha=0.4)
    hi = hi.clone2d("top-right", size=0.7, ontop=False)
    hi.name = "myhistogram"
    vplt.remove("myh…

Replies: 7 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@marcomusy
Comment options

Comment options

You must be logged in to vote
1 reply
@marcomusy
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@OwenDavid
Comment options

Answer selected by OwenDavid
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@OwenDavid
Comment options

@marcomusy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants