Jump to content

Statistic / Graphic UDF


Recommended Posts

Hi!

I started coding a UDF which allows in this version to draw pies, half-pies and relative bars.

They have a little 3d effect and can be explained using legends.

I hope you like it!

Question:

Please see History.txt to see eexact question (sth. about sorting of an 2-dimensional array)

If somebody is searching for a project to code, I would invite you to help me coding the part which is dealing with auto-scaling, creating a coordinates system and so on.

peethebee

p.s. grab the file in my filman

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to post
Share on other sites

Hi!

I included the absolute data drawing func and loadad it into my fileman.

Please test it!

There are some screenshots included.

peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to post
Share on other sites

Hi!

v1.0 Beta 2 is now in the fileman.

What's new:

- sorting works now

- winhandle supplied as optional param to draw also if win is in background

peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to post
Share on other sites

Hi!

It would be the first time that my script would have been perfect from the beginning on *g*

Please share your experiences!

peethebee

Edited by peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to post
Share on other sites
  • 1 month later...

Hi!

I tought it would be time to take this up on the first page of the Scripts & Scraps again.

Sorry for that *g*

peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to post
Share on other sites

Hi!

I would like to see it in your script. Please PM if the script is completed so that I can see my work contributing to a great program.

peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to post
Share on other sites

@peethebee

Nice job, but when running the DEMO I get lot' s of errors.

>"C:\Program Files\AutoIt3\SciTe\CompileAU3\CompileAU3.exe" /run /beta /ErrorStdOut /in "C:\_\Apps\AutoIT\Graphs\demo.au3" /autoit3dir "C:\Program Files\AutoIt3\beta" /UserParams

>Running AU3Check...C:\Program Files\AutoIt3\SciTe\Defs\Unstable\Au3Check\au3check.dat

C:\_\Apps\AutoIT\Graphs\statistics.au3(78,138) : ERROR: GUICtrlSetGraphic() [built-in]called with wrong number of args.

GUICtrlSetGraphic (-1, $gui_gr_pie, Round($_stat_width / 2) + 0.04 * $radius, Round($_stat_height / 2) + 0.03 * $radius, $radius, 0, 360)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(82,241) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic (-1, $gui_gr_pie, Round($_stat_width / 2) - 0.04 * $radius, Round($_stat_height / 2) - 0.03 * $radius, $radius, _stat_percent_to_degrees(_stat_array_sum_2_dim($data, 0, $i - 1, 0)), _stat_percent_to_degrees($data[$i][0]))

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(139,138) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic (-1, $gui_gr_pie, Round($_stat_width / 2) + 0.04 * $radius, Round($_stat_height / 2) + 0.03 * $radius, $radius, 0, 180)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(143,235) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic (-1, $gui_gr_pie, $_stat_width / 2 - 0.04 * $radius, $_stat_height / 2 - 0.03 * $radius, $radius, _stat_percent_to_degrees(_stat_array_sum_2_dim($data, 0, $i - 1, 0)) / 2, _stat_percent_to_degrees($data[$i][0]) / 2)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(146,128) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic (-1, $gui_gr_pie, $_stat_width / 2 + 0.04 * $radius, $_stat_height / 2 + 0.03 * $radius, $radius / 3, 0, 180)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(148,135) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic (-1, $gui_gr_pie, $_stat_width / 2 + 0.09 * $radius, $_stat_height / 2 + 0.025 * $_stat_height, $radius / 3, 0, 180)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(203,37) : WARNING: $gui_gr_rect: possibly used before declaration.

GUICtrlSetGraphic (-1, $gui_gr_rect,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(203,135) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic (-1, $gui_gr_rect, 5 + 0.05 * $_stat_width, 5 + 0.02 * $_stat_height, 0.95 * $_stat_width - 3, 0.98 * $_stat_height)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(208,101) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic (-1, $gui_gr_rect, 3, $_stat_top_bar, 0.95 * $_stat_width - 3, $_stat_height_bar)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(287,80) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic (-1, $gui_gr_rect, 2, 2, $_stat_width - 4, $_stat_height - 4)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(291,69) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic ($ids[0], $gui_gr_rect, 10, 10 + $i * 25, 10, 10)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(431,45) : WARNING: $gui_gr_pensize: possibly used before declaration.

GUICtrlSetGraphic ($ids[0], $gui_gr_pensize,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(433,42) : WARNING: $gui_gr_move: possibly used before declaration.

GUICtrlSetGraphic ($ids[0], $gui_gr_move,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(499,118) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic ($ids[0], $gui_gr_rect, $val_x_pos - $advanced / 2, $nullpos, $advanced, $val_y_pos - $nullpos)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~^

C:\_\Apps\AutoIT\Graphs\statistics.au3(502,124) : ERROR: GUICtrlSetGraphic() [built-in] called with wrong number of args.

GUICtrlSetGraphic ($ids[0], $gui_gr_rect, $val_x_pos - $advanced / 2, $val_y_pos, $advanced, $nullpos - $val_y_pos + 1)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\GUIConstants.au3(327,31) : ERROR: $GUI_GR_LINE previously defined as a non-'Const' var.

Global Const $GUI_GR_LINE = 2

~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~^

C:\Program Files\AutoIt3\Include\GUIConstants.au3(330,32) : ERROR: $GUI_GR_COLOR previously defined as a non-'Const' var.

Global Const $GUI_GR_COLOR = 8

~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~^

C:\Program Files\AutoIt3\Include\GUIConstants.au3(333,31) : ERROR: $GUI_GR_PIE previously defined as a non-'Const' var.

Global Const $GUI_GR_PIE = 14

~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~^

C:\Program Files\AutoIt3\Include\GUIConstants.au3(334,31) : ERROR: $GUI_GR_DOT previously defined as a non-'Const' var.

Global Const $GUI_GR_DOT = 16

~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~^

C:\_\Apps\AutoIT\Graphs\demo.au3 - 16 error(s), 3 warning(s)

>Exit code: 0 Time: 5.837

Do you have a working example available somewhere ?
Link to post
Share on other sites

Hi!

The demo.exe should work.

It is compiled with a beta version around 75.

peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to post
Share on other sites

Hi!

There might have been some changes to the function "GUICtrlSetGraphic". See the history files for that in the help file of actual beta.

If I find time, I will try to correct it and adapt it to the new capabilities.

peethebee

p.s. please post, what changed if you find it, so that I do not have that much work... *g*

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to post
Share on other sites

Hi!

I would like to see it them, busysignal!

peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to post
Share on other sites

Hi!

I hope so, busysignal.

Mail me, if it is completed!

peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to post
Share on other sites
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...