Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 16:26
    kmuehlbauer commented #1568
  • Jan 31 2019 16:15
    kmuehlbauer commented #1568
  • Jan 31 2019 15:53
    djhoese commented #1568
  • Jan 31 2019 15:46
    kmuehlbauer edited #1568
  • Jan 31 2019 15:44
    kmuehlbauer opened #1568
  • Jan 31 2019 15:32
    djhoese commented #1566
  • Jan 31 2019 15:30
    djhoese commented #1567
  • Jan 31 2019 14:18
    GuillaumeFavelier commented #1561
  • Jan 31 2019 14:15
    GuillaumeFavelier commented #1561
  • Jan 31 2019 12:46
    opekar synchronize #1130
  • Jan 31 2019 09:54
    kmuehlbauer commented #1567
  • Jan 31 2019 09:53
    kmuehlbauer synchronize #1567
  • Jan 31 2019 09:37
    kmuehlbauer labeled #1567
  • Jan 31 2019 09:37
    kmuehlbauer labeled #1567
  • Jan 31 2019 09:37
    kmuehlbauer labeled #1563
  • Jan 31 2019 09:36
    kmuehlbauer labeled #1563
  • Jan 31 2019 09:28
    kmuehlbauer commented #1567
  • Jan 31 2019 09:27
    kmuehlbauer synchronize #1567
  • Jan 31 2019 09:19
    kmuehlbauer assigned #1563
  • Jan 31 2019 09:17
    kmuehlbauer opened #1567
ViNOJ DAViS
@ViNOJ-DAViS
@kmuehlbauer I tried running your example, Its giving error to me when I run from the terminal "AttributeError: 'ImageVisual' object has no attribute 'transforms'"
What am I missing?
Kai Mühlbauer
@kmuehlbauer
@ViNOJ-DAViS That sounds a strange error. How did you install vispy and which version?
ViNOJ DAViS
@ViNOJ-DAViS
python3 version is 3.6.9
vispy is 0.4.0
I will upgrade vispy and check
Kai Mühlbauer
@kmuehlbauer
Are you able to install the latest version 0.7.0? Vispy has changed massively between 0.4.0 and 0.7.0.
ViNOJ DAViS
@ViNOJ-DAViS
@kmuehlbauer Yeah after upgrade it works. Thanks
Kai Mühlbauer
@kmuehlbauer
@ViNOJ-DAViS Great!
Philipp Schlegel
@schlegelp
Hi there! Great job on 0.7.0! I have a quick question re Volumes: is there a straight forward way to scale them? For example, I would like each voxel to have a isometric (or perhaps even non-isometric) size for easier co-visualization with other data. Perhaps with some kind of transform?
2 replies
Kai Mühlbauer
@kmuehlbauer
@ViNOJ-DAViS Please have a look here: vispy/vispy#2133 If we can add tests to this, this might go in for version 0.8.0 (next month)
ViNOJ DAViS
@ViNOJ-DAViS
Hi can anyone explain or direct me to a reference which explains (M, N, 3), or (M, N, 4) for ImageVisual data
Kai Mühlbauer
@kmuehlbauer
3 - RGB, 4 - RGBA IIRC
@ViNOJ-DAViS While you are here, I've added a new example here, which fiddles with the polar transform ( https://github.com/vispy/vispy/pull/2133#issuecomment-879854314)
David Hoese
@djhoese
@ViNOJ-DAViS To put even more detail on that: RGBA stands for Red, Green, Blue, Alpha where RGB are your normal image data making up the multi-color image and Alpha controls the transparency of the image where the lowest value (0) is fully transparent and the highest value (1 or 255 depending on data type) is fully opaque
ViNOJ DAViS
@ViNOJ-DAViS
@kmuehlbauer @djhoese Thank you....
@kmuehlbauer I am testing vispy/vispy#2133 with some test data
kmuehlbauer
@kmuehlbauer:matrix.org
[m]
Please have a look at my last example without that PR. That will do what you want without any changes to imsgevisual
ViNOJ DAViS
@ViNOJ-DAViS
@kmuehlbauer as per my understanding location is working in completely opposite manner i.e. it starts from E when W is selected and vice-versa
Kai Mühlbauer
@kmuehlbauer
@ViNOJ-DAViS I can't reproduce this. Could you elaborate a bit more?
I've found an issue with the "direction" cw/ccw but no issue with the location.
Kai Mühlbauer
@kmuehlbauer
polar_image_01.png
In the above image you see the original image (top left) and the polar representation (center). For the polar representation the original image is spread over 360 deg from left to right, with range=0 at the top and range=max at the bottom in clockwise fashion.
Kai Mühlbauer
@kmuehlbauer
polar_image_02.png
The image above shows the polar representation, from left to right, when r=max at the top and r=0 at the bottom.
ViNOJ DAViS
@ViNOJ-DAViS
Screenshot from 2021-07-15 13-02-16.png
Zhao Liang
@neozhaoliang
Hi, I have a question about using framebuffers in vispy. Is it possible to use framebuffers without using "pingpong"? I want to port some shadertoy code with bufferA/bufferB/.../bufferD to vispy, but I can't find any example on this.
1 reply
ViNOJ DAViS
@ViNOJ-DAViS

Why am I getting mirror image when compared to @kmuehlbauer image

Screenshot from 2021-07-15 13-02-16.png

What could be the issue?
Kai Mühlbauer
@kmuehlbauer
@ViNOJ-DAViS I've fixed the cw/ccw issue already in my code. Wait a minute.
                    # 4
                    # direction switch via inverting scale.x
                    * STTransform(scale=(-dir0, 1.0))
change the sign of dir0 at this line
ViNOJ DAViS
@ViNOJ-DAViS
Great @kmuehlbauer this fixes for both N & S
Screenshot from 2021-07-15 13-20-47.png
But for W & E i think its still showing opp. Can you please confirm
Kai Mühlbauer
@kmuehlbauer
Yes, you are right. Let me fix this, hang on.
                   # 3
                    # location change via translate.x
                    * STTransform(translate=(self.image.size[0] * (-loc0 - 0.25), 0.0))
Change sign of loc0 at this line.
Please note, that this only works for subdivide method. impostor needs a bit more thought.
ViNOJ DAViS
@ViNOJ-DAViS
Yeah its working...Thanks
Kai Mühlbauer
@kmuehlbauer
You're welcome. I'll add this transform chain as an answer on SO.
Kai Mühlbauer
@kmuehlbauer
The answer is on SO, I hope I got it all correct over there.
4 replies
ViNOJ DAViS
@ViNOJ-DAViS
Thank you @kmuehlbauer it works perfectly and i have accepted that anwser on SO
Kai Mühlbauer
@kmuehlbauer
@ViNOJ-DAViS you might have a look every once in a while at the PR I linked above. I want to finish this in August also for the impostor method. Good chance that there might be some simplifications and/or additions.
ViNOJ DAViS
@ViNOJ-DAViS
Yeah I will.. Thanks
Pi
@p-i-
https://vispy.org/getting_started/plot.html
^ "... coming soon"
This is kinda core doc, no? How to code a "Hello World" plot with vispy...
David Hoese
@djhoese
@p-i- You'll have to check the examples in the vispy repository. We are a small team with limited time and haven't had time to include all of this information. If you are attending the SciPy 2021 conference this year (going on now) we are doing a sprint on Saturday and Sunday as part of the conference. This could be a task to be worked on.
Pi
@p-i-
haha yes I know too well what it's like to work with limited resources.
I've moved from hybriddesktop/mobile/fullstack to 90% numpy/python/visualizations lately and I'm fascinated to find this project.
Previously I used https://github.com/unconed/mathbox but the cognitive load / learning curve (and lack of community) fried my brain.
I just can't guarantee to deliver on time with that tech as it rabbitholes everywhere.
Pi
@p-i-

I'm working on 2 projects that I might be able to migrate to vispy.
First one is plotting points. Each point is a trade. Intensity is volume.
A few thousand dots per frame.
I get 20-30fps rendering into an XxYxRGB numpy array and blitting it to screen thru opencv. And I can catch mouseclicks.
But it gets sluggish as I increase the dots.
And I have to do numpy voodoo for multiple trades occupying the same pixel, that I'd love to gut out from my code.

And the other, same deal just plotting an array of coloured rectangles.
It's for visualizing a stock graph, the rectangles represent trades or orderbook info.
And I click on a trade to zoom into it & observe market activity in close temporal proximity to that trade. I want to do this as an overlay.
I figured I can pass a numpy vertex array into a shader.