World: r3wp
[View] discuss view related issues
older newer | first last |
Graham 23-Sep-2005 [2736x2] | I suspect it is unnecessary for the task at hand, and would complicate the task somewhat. |
still, it would be a good demo :) | |
Henrik 23-Sep-2005 [2738] | I'd love to see a demo of an overview of graphs updated in realtime from any source. any. |
Graham 23-Sep-2005 [2739] | of any graph in any language or just Rebol? |
Henrik 23-Sep-2005 [2740] | well for starters Rebol, but what if you could mix data like that and then just display it, no matter if it's CVS, rebol blocks or something measured off the serial port from a physical device. |
Graham 23-Sep-2005 [2741] | sounds like you want to make a rebol oscilloscope |
Geomol 23-Sep-2005 [2742] | Is the stock-market data available somewhere online? |
Henrik 23-Sep-2005 [2743x2] | actually I think the hardest part would be to display a pretty graph :-) retrieving data could be done from within the graph face |
I don't know about raw stock data... | |
Geomol 23-Sep-2005 [2745] | Temperature data is also good for that. |
Graham 23-Sep-2005 [2746] | stock market data is available from yahoo I believe, but delayed by 15 mins or something |
Henrik 23-Sep-2005 [2747] | graham: an oscilloscope could be a bit too intensive :-) |
Geomol 23-Sep-2005 [2748] | Or sea-level (changes with tide and weather). |
Graham 23-Sep-2005 [2749] | or Canvas release rates |
Geomol 23-Sep-2005 [2750x3] | Wind direction. |
lol | |
release rates contra size in kB | |
Graham 23-Sep-2005 [2753] | I guess I'd better find some docs on the draw dialect and see how easily this could be done. |
Henrik 23-Sep-2005 [2754] | It could be nice to have general graphing tools for Rebol like RRDTool which is a very powerful (but complex) graphing package for Linux |
Geomol 23-Sep-2005 [2755x2] | A start: |
view layout [box white effect [draw [pen black line 0x100 10x80 20x85 30x50 40x60 50x65 60x55 70x40 80x50 90x20]]] | |
Graham 23-Sep-2005 [2757] | or gnuplot |
Geomol 23-Sep-2005 [2758x2] | To change data, you could do: clear next find face/effect/draw 'line append face/effect/draw data-block |
show face | |
Graham 23-Sep-2005 [2760x2] | what about scatter plots ? |
would be as easy to update ? | |
Geomol 23-Sep-2005 [2762] | Is that points? |
Graham 23-Sep-2005 [2763] | yes. |
Geomol 23-Sep-2005 [2764x3] | view layout [box white effect [draw [pen none fill-pen black circle 10x80 4 circle 20x85 4 circle 30x50 4 circle 40x60 4 circle 50x65 4 circle 60x55 4 circle 70x40 4 circle 80x50 4 circle 90x20 4]]] |
Update is almost as easy, just put circle in front and radius (4) behind the coords. | |
Picking data online and show a graph could maybe be an one-liner. :-) Only with REBOL! (TM) | |
Graham 23-Sep-2005 [2767] | do points have to be done with circles ? |
Geomol 23-Sep-2005 [2768] | I guess so. Isn't a dot on a monitor a very small circle? Just change radius to 1 or 0.5 or something. |
Graham 23-Sep-2005 [2769] | a dot on my monitor is a little square :) |
Geomol 23-Sep-2005 [2770x2] | :-) A one-pixel dot: |
view layout [box white effect [draw [translate 0.5 0.5 anti-alias off pen none fill-pen black circle 50x50 0.5]]] | |
Graham 23-Sep-2005 [2772x3] | cool. |
exactly one pixel too. | |
Looking carefully at my laptop screen, it's a grid of square pixels. | |
Geomol 23-Sep-2005 [2775] | The translate move the center of the circle into the middle of a pixel. Radius of 0.5 then means, the circle won't go into neighbour pixels. |
Graham 23-Sep-2005 [2776] | Perhaps you can incorporate a graphing module in Canvas :) |
Geomol 23-Sep-2005 [2777x2] | Without the translate, 4 pixels would be black. |
Graham, certainly! :-) | |
Graham 23-Sep-2005 [2779x2] | anim-graph ? |
That's the thing about great software; it can be used by others in ways the author never conceived | |
Henrik 23-Sep-2005 [2781] | you could do really weird stuff with that. how about live graphs in a presentation? |
Brock 23-Sep-2005 [2782x2] | Don't know if quick-plot by Matt Licholai would help you guys in any way. |
I know it can be found by googling q-plot.r. Ladislav has done some work that used q-plot, not sure if he's enhanced it or if anyone else has. | |
Geomol 24-Sep-2005 [2784] | There is a window face option named "all-over", that will "Causes the over event to report a continuous stream of mouse positions as the mouse moves over the face". I use it in Canvas, but there seem to be a problem. After a while, when I haven't touched the computer for some time, it seems, that the all-over option is canceled. It can be seen in Canvas, that the coords in the title-bar isn't updated, when the mouse is moved. Does anyone know something about this? I've checked RAMBO, but couldn't find anything about it. |
Pekr 24-Sep-2005 [2785] | all-over was in some very early beta View days the default option. Later on we found out, that it causes way too much flood of events, so it was changed and all-over came to its life ..... |
older newer | first last |