diff --git a/.gitattributes b/.gitattributes index 923432a5..c6b12e16 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,3 +17,7 @@ /codeception.yml export-ignore /composer.lock export-ignore /jpgraph_logo.jpg export-ignore +/.php_cs.cache export-ignore +/.phpunit.result.cache export-ignore +/.build/csfixer.cache export-ignore +/.build/phplint.cache export-ignore \ No newline at end of file diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index bf572ecf..b0383a28 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -53,7 +53,7 @@ jobs: echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Install PHP dependencies - run: composer update --'prefer-stable' --no-interaction --no-progress + run: composer install --prefer-dist --no-interaction --no-progress --ignore-platform-reqs - name: Coverage run: composer coverage diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 187d01ba..9c5c62bf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,7 +28,7 @@ jobs: echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Install PHP dependencies - run: composer update --'prefer-stable' --no-interaction --no-progress --ignore-platform-reqs + run: composer install --no-plugins --prefer-dist --no-interaction --no-progress --ignore-platform-reqs - name: PHPLint run: composer lint diff --git a/.php_cs.cache b/.php_cs.cache deleted file mode 100644 index 9e6f2bc1..00000000 --- a/.php_cs.cache +++ /dev/null @@ -1 +0,0 @@ -{"php":"7.2.25-1+ubuntu18.04.1+deb.sury.org+1","version":"2.15.0:v2.15.0#adfab51ae979ee8b0fcbc55aa231ec2786cb1f91","indent":" ","lineEnding":"\n","rules":{"no_php4_constructor":true,"php_unit_namespaced":{"target":"6.0"},"php_unit_dedicate_assert":{"target":"5.6"},"php_unit_expectation":{"target":"5.6"},"php_unit_mock":{"target":"5.5"},"php_unit_no_expectation_annotation":{"target":"4.3"},"binary_operator_spaces":{"align_double_arrow":true,"align_equals":true},"blank_line_after_opening_tag":true,"blank_line_before_statement":true,"braces":true,"cast_spaces":true,"class_attributes_separation":{"elements":["method"]},"class_definition":true,"concat_space":{"spacing":"one"},"declare_equal_normalize":true,"function_typehint_space":true,"include":true,"increment_style":true,"lowercase_cast":true,"lowercase_static_reference":true,"magic_constant_casing":true,"magic_method_casing":true,"method_argument_space":{"ensure_fully_multiline":true},"native_function_casing":true,"native_function_type_declaration_casing":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_blank_lines_after_phpdoc":true,"no_empty_comment":true,"no_empty_phpdoc":true,"no_empty_statement":true,"no_extra_blank_lines":{"tokens":["break","continue","extra","return","throw","use","parenthesis_brace_block","square_brace_block","curly_brace_block"]},"no_leading_import_slash":true,"no_leading_namespace_whitespace":true,"no_mixed_echo_print":{"use":"echo"},"no_multiline_whitespace_around_double_arrow":true,"no_short_bool_cast":true,"no_singleline_whitespace_before_semicolons":true,"no_spaces_around_offset":true,"no_trailing_comma_in_list_call":true,"no_trailing_comma_in_singleline_array":true,"no_unneeded_control_parentheses":true,"no_unneeded_curly_braces":true,"no_unneeded_final_method":true,"no_unused_imports":true,"no_whitespace_before_comma_in_array":true,"no_whitespace_in_blank_line":true,"normalize_index_brace":true,"object_operator_without_whitespace":true,"php_unit_fqcn_annotation":true,"phpdoc_align":true,"phpdoc_annotation_without_dot":true,"phpdoc_indent":true,"phpdoc_inline_tag":true,"phpdoc_no_access":true,"phpdoc_no_alias_tag":true,"phpdoc_no_empty_return":true,"phpdoc_no_useless_inheritdoc":true,"phpdoc_return_self_reference":true,"phpdoc_scalar":true,"phpdoc_separation":true,"phpdoc_single_line_var_spacing":true,"phpdoc_summary":true,"phpdoc_to_comment":true,"phpdoc_trim":true,"phpdoc_types":true,"phpdoc_types_order":true,"phpdoc_var_without_name":true,"protected_to_private":true,"return_type_declaration":true,"semicolon_after_instruction":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_class_element_per_statement":{"elements":["property"]},"single_quote":true,"single_trait_insert_per_statement":true,"space_after_semicolon":{"remove_in_empty_for_expressions":true},"standardize_increment":true,"standardize_not_equals":true,"ternary_operator_spaces":true,"trailing_comma_in_multiline_array":true,"trim_array_spaces":true,"unary_operator_spaces":true,"whitespace_after_comma_in_array":true,"blank_line_after_namespace":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_constants":true,"lowercase_keywords":true,"no_break_comment":true,"no_closing_tag":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":true,"encoding":true,"full_opening_tag":true,"modernize_types_casting":true,"align_multiline_comment":true,"array_syntax":{"syntax":"short"},"combine_consecutive_issets":true,"combine_consecutive_unsets":true,"compact_nullable_typehint":true,"escape_implicit_backslashes":true,"explicit_indirect_variable":true,"explicit_string_variable":true,"final_internal_class":true,"header_comment":{"commentType":"PHPDoc","header":"JPGraph v4.0.0"},"heredoc_to_nowdoc":true,"list_syntax":{"syntax":"long"},"method_chaining_indentation":true,"multiline_comment_opening_closing":true,"no_null_property_initialization":true,"no_short_echo_tag":true,"no_superfluous_elseif":true,"no_unreachable_default_argument_value":true,"no_useless_else":true,"no_useless_return":true,"ordered_imports":true,"php_unit_strict":true,"php_unit_test_annotation":true,"php_unit_test_class_requires_covers":true,"phpdoc_add_missing_param_annotation":true,"phpdoc_order":true,"strict_param":true},"hashes":{"Examples\/examples_axis\/axislabelbkgex05.php":1759485393,"Examples\/examples_axis\/axislabelbkgex07.php":2192521527,"Examples\/examples_axis\/topxaxis.php":3196655853,"Examples\/examples_axis\/axislabelbkgex04.php":50610810,"Examples\/examples_axis\/mulyaxisex1.php":1187126820,"Examples\/examples_axis\/inyaxisex1.php":517396201,"Examples\/examples_axis\/inyaxisex2.php":2364750263,"Examples\/examples_axis\/axislabelbkgex02.php":2056980487,"Examples\/examples_axis\/inyaxisex3.php":1274998304,"Examples\/examples_axis\/axislabelbkgex03.php":87248563,"Examples\/examples_axis\/axislabelbkgex01.php":740044155,"Examples\/examples_axis\/axislabelbkgex06.php":1411831829,"Examples\/examples_axis\/dupyaxisex1.php":3288066482,"Examples\/examples_radar\/no_test_radarex3.php":2779928066,"Examples\/examples_radar\/no_test_radarex6.php":1269764359,"Examples\/examples_radar\/no_test_radarex8.1.php":3302161840,"Examples\/examples_radar\/no_test_radarex5.php":2985686765,"Examples\/examples_radar\/no_test_radarlogex1-aa.php":1198398340,"Examples\/examples_radar\/no_test_radarex2.php":2271679967,"Examples\/examples_radar\/no_test_radarmarkex1.php":117059392,"Examples\/examples_radar\/no_test_radarex6.1.php":4000994083,"Examples\/examples_radar\/no_test_radarex4.php":2110963000,"Examples\/examples_radar\/no_test_radarex1.php":390277548,"Examples\/examples_radar\/no_test_radarlogex2.php":896245536,"Examples\/examples_radar\/no_test_radarex9.php":868610821,"Examples\/examples_radar\/no_test_fixscale_radarex1.php":3669407442,"Examples\/examples_radar\/no_test_radarlogex1.php":728762360,"Examples\/examples_radar\/no_test_radarex7.php":1240293235,"Examples\/examples_radar\/no_test_radarex8.php":3766292693,"Examples\/examples_qr\/no_test_qrexample12.php":969772685,"Examples\/examples_qr\/no_test_qrexample11.php":4076326493,"Examples\/examples_qr\/no_test_qr_template.php":4235038275,"Examples\/examples_qr\/no_test_qrexample03.php":786877606,"Examples\/examples_qr\/no_test_qrexample08.php":4255043824,"Examples\/examples_qr\/no_test_qrexample07.php":4119236108,"Examples\/examples_qr\/no_test_qrexample02.php":2743888955,"Examples\/examples_qr\/no_test_qrexample05.php":3368447682,"Examples\/examples_qr\/no_test_qrexample09.php":2722296159,"Examples\/examples_qr\/no_test_qrexample04.php":1439752972,"Examples\/examples_qr\/no_test_qrexample00.php":694931049,"Examples\/examples_qr\/no_test_qrexample01.php":1329872836,"Examples\/examples_qr\/no_test_qrexample10.php":3234248850,"Examples\/examples_qr\/no_test_qrexample0.php":107337635,"Examples\/examples_qr\/no_test_qrexample06.php":2551538089,"Examples\/examples_tables\/no_test_tableex00.php":1031785484,"Examples\/examples_tables\/no_test_table_vtext.php":2731380737,"Examples\/examples_tables\/no_test_table_mex3.php":2393340785,"Examples\/examples_tables\/no_test_table_howto5.php":136858856,"Examples\/examples_tables\/no_test_table_howto1.php":524519782,"Examples\/examples_tables\/no_test_table_mex1.php":1524590985,"Examples\/examples_tables\/no_test_table_howto7.php":2994249961,"Examples\/examples_tables\/no_test_tableex04.php":3803289147,"Examples\/examples_tables\/no_test_table_howto8.php":3374942483,"Examples\/examples_tables\/no_test_table_howto7.2.php":2994249961,"Examples\/examples_tables\/no_test_table_howto4.php":3204538249,"Examples\/examples_tables\/no_test_tableex05.php":17882985,"Examples\/examples_tables\/no_test_table_flagex1.php":727745378,"Examples\/examples_tables\/no_test_table_howto2.php":609271369,"Examples\/examples_tables\/no_test_table_mex0.php":3382239488,"Examples\/examples_tables\/no_test_table_howto9.php":41051795,"Examples\/examples_tables\/no_test_tableex01.php":81037069,"Examples\/examples_tables\/no_test_table_howto7.1.php":3588625229,"Examples\/examples_tables\/no_test_table_howto3.php":3971965130,"Examples\/examples_tables\/no_test_table_howto6.php":2481349773,"Examples\/examples_tables\/no_test_table_vtext_ex1.php":1160732788,"Examples\/examples_tables\/no_test_table_mex00.php":2340033975,"Examples\/examples_tables\/no_test_tablebarex1.php":2363123125,"Examples\/examples_tables\/no_test_table_mex2.php":628903699,"Examples\/examples_tables\/no_test_tableex03.php":1747401013,"Examples\/examples_tables\/no_test_tableex02.php":1321779093,"Examples\/examples_rotate\/rotex4.php":3170555959,"Examples\/examples_rotate\/rotex0.php":3979600988,"Examples\/examples_rotate\/rotex2.php":3662066651,"Examples\/examples_rotate\/rotex1.php":1095761255,"Examples\/examples_rotate\/rotateex1.php":1796146303,"Examples\/examples_rotate\/rotex3.php":1292114585,"Examples\/examples_rotate\/rotex5.php":524780724,"Examples\/show-example.php":1543080987,"Examples\/checkttf.php":186395781,"Examples\/listallflags.php":960540511,"Examples\/examples_led\/no_test_ledex13.php":2212987444,"Examples\/examples_led\/no_test_ledex14.php":3157904637,"Examples\/examples_led\/no_test_ledex3.php":1668222451,"Examples\/examples_led\/no_test_ledex5.php":2001750537,"Examples\/examples_led\/no_test_ledex4.1.php":2334379830,"Examples\/examples_led\/no_test_ledex7.php":2344991881,"Examples\/examples_led\/no_test_ledex1.php":1218820615,"Examples\/examples_led\/no_test_ledex10.php":1708304390,"Examples\/examples_led\/no_test_ledex6.php":2468077344,"Examples\/examples_led\/no_test_ledex8.php":1109859753,"Examples\/examples_led\/no_test_ledex12.php":3122975372,"Examples\/examples_led\/no_test_ledex_cyrillic2.php":2374151908,"Examples\/examples_led\/no_test_ledex9.php":37746845,"Examples\/examples_led\/no_test_ledex15.php":407349482,"Examples\/examples_led\/no_test_ledex17.php":2884083211,"Examples\/examples_led\/no_test_ledex4.2.php":4216642000,"Examples\/examples_led\/no_test_ledex4.php":3004712005,"Examples\/examples_led\/no_test_ledex16.php":1359061332,"Examples\/examples_led\/no_test_ledex_cyrillic.php":1918769542,"Examples\/examples_led\/no_test_ledex2.php":3600088464,"Examples\/examples_led\/no_test_ledex11.php":723708937,"Examples\/checkgd.php":3059580498,"Examples\/csim_in_html_ex2.php":308665523,"Examples\/examples_img\/imgmarkerex1.php":4025215141,"Examples\/examples_img\/bkgimgflagex1.php":1432504919,"Examples\/examples_img\/no_dim_bkgimgflagex4.php":639197028,"Examples\/examples_img\/no_dim_bkgimgflagex3.php":674431062,"Examples\/examples_img\/no_dim_bkgimgflagex5.php":4187725535,"Examples\/examples_img\/antispamex01.php":1095228719,"Examples\/examples_img\/no_dim_bkgimgflagex2.php":2632392698,"Examples\/examples_odometer\/no_test_odoex09.php":1373413836,"Examples\/examples_odometer\/no_test_odotutex01.php":2467976778,"Examples\/examples_odometer\/no_test_odotutex17.php":1805354633,"Examples\/examples_odometer\/no_test_odotutex03.php":2726243403,"Examples\/examples_odometer\/no_test_odoex03.php":2736833783,"Examples\/examples_odometer\/no_test_odotutex15.php":3107047345,"Examples\/examples_odometer\/no_test_odotutex16.1.php":184926700,"Examples\/examples_odometer\/no_test_odoex011.php":1556909925,"Examples\/examples_odometer\/no_test_odotutex19.php":4237229363,"Examples\/examples_odometer\/no_test_odotutex11.php":1215439613,"Examples\/examples_odometer\/no_test_odoex07.php":2537823154,"Examples\/examples_odometer\/no_test_odoex02.php":2209491339,"Examples\/examples_odometer\/no_test_odotutex14.php":588763063,"Examples\/examples_odometer\/no_test_odotutex12.php":2275149401,"Examples\/examples_odometer\/no_test_odotutex08.php":1564422435,"Examples\/examples_odometer\/no_test_odotutex18.php":2360522070,"Examples\/examples_odometer\/no_test_odotutex06.php":3668681761,"Examples\/examples_odometer\/no_test_odotutex09.php":475402084,"Examples\/examples_odometer\/no_test_odotutex02.php":4134740225,"Examples\/examples_odometer\/no_test_odotutex10.php":1313622312,"Examples\/examples_odometer\/no_test_odoex012.php":1227835858,"Examples\/examples_odometer\/no_test_odotutex04.php":3123660747,"Examples\/examples_odometer\/no_test_odotutex07.php":3449228909,"Examples\/examples_odometer\/no_test_odotutex00.php":556342226,"Examples\/examples_odometer\/no_test_odotutex16.php":976220855,"Examples\/examples_odometer\/no_test_odoex05.php":2400056131,"Examples\/examples_odometer\/no_test_odoex06.php":926447899,"Examples\/examples_odometer\/no_test_odotutex08.1.php":1507518868,"Examples\/examples_odometer\/no_test_odoex01.php":3022935921,"Examples\/examples_odometer\/no_test_odoex04.php":56072471,"Examples\/examples_odometer\/no_test_odoex08.php":2979728819,"Examples\/examples_odometer\/no_test_odoex00.php":1158410692,"Examples\/examples_odometer\/no_test_odotutex13.php":2807240552,"Examples\/examples_odometer\/no_test_odoex010.php":2240472040,"Examples\/examples_matrix\/no_test_matrix_ex04.php":923393043,"Examples\/examples_matrix\/no_test_matrix_ex01.php":50319649,"Examples\/examples_matrix\/no_test_matrixex00.php":863797823,"Examples\/examples_matrix\/no_test_matrix_ex03.php":1615885068,"Examples\/examples_matrix\/no_test_matrix_edgeex02.php":2242296877,"Examples\/examples_matrix\/no_test_matrix_edgeex01.php":2213697297,"Examples\/examples_matrix\/no_test_matrix_ex06.php":3378893491,"Examples\/examples_matrix\/no_test_matrix_layout_ex1.php":3868652052,"Examples\/examples_matrix\/no_test_matrix_ex05.php":3792878701,"Examples\/examples_matrix\/no_test_matrix_ex02.php":566490301,"Examples\/examples_matrix\/no_test_matrix_ex04.2.php":2431139422,"Examples\/examples_matrix\/no_test_matrix_ex04.1.php":3590101168,"Examples\/examples_matrix\/no_test_matrix_ex0.php":2509629825,"Examples\/examples_matrix\/no_test_matrix_introex.php":3728217922,"Examples\/builtinplotmarksex1.php":1124628874,"Examples\/testsuitversus.php":125199041,"Examples\/linlogex1.php":637606420,"Examples\/titleex1.php":3479797644,"Examples\/y2synch2.php":2786114186,"Examples\/checkgd2.php":94287310,"Examples\/show-image.php":1567245115,"Examples\/examples_staticband\/staticbandbarex1.php":973462625,"Examples\/examples_staticband\/staticbandbarex4.php":132178157,"Examples\/examples_staticband\/staticbandbarex3.php":3444208197,"Examples\/examples_staticband\/smallstaticbandsex6.php":1863626661,"Examples\/examples_staticband\/smallstaticbandsex9.php":4119417726,"Examples\/examples_staticband\/smallstaticbandsex7.php":3798958567,"Examples\/examples_staticband\/smallstaticbandsex10.php":3686963739,"Examples\/examples_staticband\/staticbandbarex5.php":3363116429,"Examples\/examples_staticband\/smallstaticbandsex5.php":188485656,"Examples\/examples_staticband\/smallstaticbandsex8.php":47341234,"Examples\/examples_staticband\/staticbandbarex7.php":2696472814,"Examples\/examples_staticband\/smallstaticbandsex4.php":3957622709,"Examples\/examples_staticband\/staticbandbarex2.php":3094921916,"Examples\/examples_staticband\/smallstaticbandsex1.php":2502316746,"Examples\/examples_staticband\/smallstaticbandsex2.php":3260513358,"Examples\/examples_staticband\/smallstaticbandsex3.php":1623869243,"Examples\/examples_staticband\/staticbandbarex6.php":468627645,"Examples\/examples_staticband\/smallstaticbandsex11.php":3686963739,"Examples\/example_list.php":2426909901,"Examples\/new_step1.php":3941253578,"Examples\/examples_date\/datescaleticksex01.php":251848426,"Examples\/examples_date\/dateaxisex1.php":3029450210,"Examples\/examples_date\/dateaxisex3.php":3897228751,"Examples\/examples_date\/dateaxisex4.php":1966174124,"Examples\/examples_date\/dateutilex01.php":2881102358,"Examples\/examples_date\/dateaxisex2.php":1226720100,"Examples\/examples_date\/dateutilex02.php":2676681924,"Examples\/examples_date\/prepaccdata_example.php":3217171289,"Examples\/listfontsex1.php":554142333,"Examples\/colormaps.php":2755782388,"Examples\/examples_line\/gradlinefillex1.php":2620911653,"Examples\/examples_line\/filledgridex1.php":1237207855,"Examples\/examples_line\/linebarex3.php":1659993081,"Examples\/examples_line\/clipping_ex1.php":3009890800,"Examples\/examples_line\/linebarex2.php":194916088,"Examples\/examples_line\/lineimagefillex1.php":3401842299,"Examples\/examples_line\/manscaleex1.php":85037592,"Examples\/examples_line\/filledstepstyleex1.php":3512616519,"Examples\/examples_line\/centeredlineex01.php":3039037006,"Examples\/examples_line\/gradlinefillex3.php":3307293832,"Examples\/examples_line\/funcex2.php":3417639798,"Examples\/examples_line\/builtinplotmarksex1.php":1015401645,"Examples\/examples_line\/no_test_lineiconex2.php":2205950351,"Examples\/examples_line\/linlogex1.php":1764786628,"Examples\/examples_line\/linegraceex.php":2901569442,"Examples\/examples_line\/titleex1.php":2579971906,"Examples\/examples_line\/y2synch2.php":2338214124,"Examples\/examples_line\/no_test_new_line5.php":1362363069,"Examples\/examples_line\/no_dim_plotlineex1.php":2726889594,"Examples\/examples_line\/manscaleex4.php":2070520373,"Examples\/examples_line\/filledline01.php":2898052118,"Examples\/examples_line\/filledlineex01.1.php":1503982005,"Examples\/examples_line\/staticlinebarex1.php":3790771081,"Examples\/examples_line\/no_test_new_line4.php":4001000423,"Examples\/examples_line\/filledlineex03.php":1344006057,"Examples\/examples_line\/manscaleex3.php":299467349,"Examples\/examples_line\/filledlineex01.php":2910439161,"Examples\/examples_line\/new_line3.php":3765582955,"Examples\/examples_line\/no_test_new_line1.php":290807618,"Examples\/examples_line\/funcex3.php":1772328869,"Examples\/examples_line\/y2synch.php":2458932049,"Examples\/examples_line\/no_test_lineiconex1.php":2188757476,"Examples\/examples_line\/centerlinebarex1.php":1514772066,"Examples\/examples_line\/gradlinefillex4.php":1569038092,"Examples\/examples_line\/funcex1.php":838756433,"Examples\/examples_line\/interpolation-growth.php":3887353342,"Examples\/examples_line\/gradlinefillex2.php":3193560947,"Examples\/examples_line\/interpolation-growth-log.php":4017084893,"Examples\/examples_line\/funcex4.php":3510597340,"Examples\/examples_line\/gradbkgex1.php":2144794295,"Examples\/examples_line\/manscaleex2.php":3243711275,"Examples\/examples_line\/timestampex01.php":2357749761,"Examples\/examples_line\/clipping_ex2.php":4145754298,"Examples\/examples_line\/centeredlineex03.php":1195080683,"Examples\/examples_line\/centeredlineex02.php":2842188343,"Examples\/examples_line\/partiallyfilledlineex1.php":850863102,"Examples\/examples_line\/filledlineex02.php":4178104613,"Examples\/examples_line\/no_test_new_line2.php":1896385918,"Examples\/examples_line\/linebarex1.php":4281212603,"Examples\/examples_line\/linebarcentex1.php":1700437391,"Examples\/examples_line\/nullvalueex01.php":781718998,"Examples\/examples_line\/splineex1.php":4236034499,"Examples\/examples_line\/tabtitleex1.php":1182762629,"Examples\/examples_line\/no_test_new_step1.php":2674237061,"Examples\/examples_multigraph\/no_test_combgraphex2.php":1294378824,"Examples\/examples_multigraph\/no_test_comb90dategraphex01.php":2865873836,"Examples\/examples_multigraph\/no_test_combgraphex1.php":34254009,"Examples\/examples_multigraph\/no_test_comb90dategraphex02.php":3161324291,"Examples\/examples_multigraph\/no_test_comb90dategraphex03.php":3276589437,"Examples\/examples_sunspot\/no_test_sunspotsex3.php":4144274901,"Examples\/examples_sunspot\/no_test_sunspotsex1.php":3292199752,"Examples\/examples_sunspot\/no_test_sunspotsex6.php":1099877817,"Examples\/examples_sunspot\/no_test_sunspotsex5.php":2955703050,"Examples\/examples_sunspot\/no_test_sunspotsex4.php":1870331008,"Examples\/examples_sunspot\/no_test_sunspotsex7.php":3084068433,"Examples\/examples_sunspot\/no_test_sunspotsex2.php":123785609,"Examples\/y2synch.php":4204734912,"Examples\/examples_gantt\/ganttex01.php":1215082372,"Examples\/examples_gantt\/gantt_samerowex2.php":3547364152,"Examples\/examples_gantt\/gantt_samerowex1.php":1991848820,"Examples\/examples_gantt\/ganttex07.php":1146745962,"Examples\/examples_gantt\/ganttex11.php":4125242244,"Examples\/examples_gantt\/gantt_textex1.php":1671807939,"Examples\/examples_gantt\/ganttmonthyearex3.php":1129244055,"Examples\/examples_gantt\/ganttconstrainex1.php":915603396,"Examples\/examples_gantt\/gantticonex1.php":3218745056,"Examples\/examples_gantt\/ganttcolumnfontsex01.php":949340152,"Examples\/examples_gantt\/gantthgridex1.php":1587702732,"Examples\/examples_gantt\/ganttex00.php":3476314331,"Examples\/examples_gantt\/ganttmonthyearex1.php":770053665,"Examples\/examples_gantt\/ganttex10.php":2834674357,"Examples\/examples_gantt\/ganttex17.php":2652571129,"Examples\/examples_gantt\/ganttex02.php":2657257655,"Examples\/examples_gantt\/ganttex13-zoom1.php":2509472462,"Examples\/examples_gantt\/ganttex17-flag.php":1169505813,"Examples\/examples_gantt\/ganttex14.php":1428475399,"Examples\/examples_gantt\/ganttex09.php":59319143,"Examples\/examples_gantt\/ganttex13.php":1121934547,"Examples\/examples_gantt\/ganttmonthyearex2.php":1203926037,"Examples\/examples_gantt\/gantthourex1.php":3086091131,"Examples\/examples_gantt\/ganttex_slice.php":4049850033,"Examples\/examples_gantt\/ganttsimpleex1.php":3629417136,"Examples\/examples_gantt\/ganttmonthyearex4.php":2586297529,"Examples\/examples_gantt\/ganttex03.php":1919959434,"Examples\/examples_gantt\/multconstganttex01.php":3477867887,"Examples\/examples_gantt\/ganttex08.php":491255859,"Examples\/examples_gantt\/no_test_ganttex19.php":832935409,"Examples\/examples_gantt\/ganttex30.php":3947180964,"Examples\/examples_gantt\/ganttex04.php":2356731932,"Examples\/examples_gantt\/ganttconstrainex0.php":1561681810,"Examples\/examples_gantt\/ganttex06.php":3930478555,"Examples\/examples_gantt\/ganttex12.php":2296639315,"Examples\/examples_gantt\/ganttex16.php":1149798780,"Examples\/examples_gantt\/ganttex05.php":3407828967,"Examples\/examples_gantt\/ganttex18.php":2945856519,"Examples\/examples_gantt\/ganttconstrainex2.php":502859377,"Examples\/examples_gantt\/ganttex15.php":3944333095,"Examples\/examples_gantt\/ganttex13-zoom2.php":679673189,"Examples\/examples_gantt\/gantthourminex1.php":3041566538,"Examples\/examples_theme\/no_test_fusion_example.php":1477970693,"Examples\/examples_theme\/no_test_theme_example.php":2785919712,"Examples\/examples_theme\/no_test_orange_example.php":3113965687,"Examples\/examples_theme\/no_test_vivid_example.php":4235378347,"Examples\/examples_theme\/no_test_pastel_example.php":803381419,"Examples\/examples_theme\/aqua_example.php":2857346087,"Examples\/examples_theme\/no_test_green_example.php":1958621456,"Examples\/examples_theme\/no_test_rose_example.php":3990444150,"Examples\/examples_theme\/no_test_softy_example.php":1097792985,"Examples\/examples_theme\/no_test_ocean_example.php":1714207412,"Examples\/examples_theme\/no_test_universal_example.php":3060474503,"Examples\/examples_pdf\/no_test_pdf417_ex3.php":1069248813,"Examples\/examples_pdf\/no_test_pdf417_ex0.php":333747031,"Examples\/examples_pdf\/no_test_pdf417_ex4.php":834847587,"Examples\/examples_pdf\/no_test_pdf417_ex6.php":3846353109,"Examples\/examples_pdf\/no_test_pdf417_ex1b.php":1926751413,"Examples\/examples_pdf\/no_test_pdf417_ex5.php":2069768443,"Examples\/examples_pdf\/no_test_pdf417_ex1.php":3910677207,"Examples\/examples_pdf\/no_test_pdf417_ex2.php":2258539167,"Examples\/examples_pdf\/no_test_pdf417_ex1c.php":1311437441,"Examples\/interpolation-growth.php":4227358013,"Examples\/examples_polar\/no_test_polarex1.php":3476832700,"Examples\/examples_polar\/no_test_polarex5.php":583473751,"Examples\/examples_polar\/no_test_polarex7-2.php":3025931135,"Examples\/examples_polar\/no_test_polarex0-180.php":2993891107,"Examples\/examples_polar\/no_test_polarex8.php":308783839,"Examples\/examples_polar\/no_test_polarex2.php":93198711,"Examples\/examples_polar\/no_test_polarex0.php":2611117867,"Examples\/examples_polar\/no_test_polarex6.php":3315399034,"Examples\/examples_polar\/no_test_polarex9.php":2014144154,"Examples\/examples_polar\/no_test_polarclockex2.php":4074280339,"Examples\/examples_polar\/no_test_polarex3.php":2905286776,"Examples\/examples_polar\/no_test_polarclockex1.php":3799449392,"Examples\/examples_polar\/no_test_polarex10.php":1738236400,"Examples\/examples_polar\/no_test_polarex7.php":2330213927,"Examples\/examples_polar\/no_test_polarex3-lin.php":2101040885,"Examples\/examples_polar\/no_test_polarex4.php":1183421867,"Examples\/examples_polar\/no_test_polarex7-1.php":3007685459,"Examples\/interpolation-growth-log.php":2960029069,"Examples\/multconstganttex01.php":4029135318,"Examples\/defined_constants.php":1337884041,"Examples\/titlecsimex01.php":2480049148,"Examples\/gradbkgex1.php":1577152449,"Examples\/examples_canvas\/no_test_mkgrad.php":1269100105,"Examples\/examples_canvas\/canvasex06.php":3234870902,"Examples\/examples_canvas\/no_test_listfontsex1.php":1789332094,"Examples\/examples_canvas\/no_test_colormaps.php":2755782388,"Examples\/examples_canvas\/no_dim_canvasex04.php":398431560,"Examples\/examples_canvas\/no_test_text-example2.php":979869200,"Examples\/examples_canvas\/no_test_textalignex1.php":834689966,"Examples\/examples_canvas\/canvaspiralex1.php":3886284819,"Examples\/examples_canvas\/no_dim_canvasex02.php":974801682,"Examples\/examples_canvas\/no_dim_canvas_jpgarchex.php":3574240344,"Examples\/examples_canvas\/no_dim_canvasex01.php":720063450,"Examples\/examples_canvas\/canvasbezierex1.php":803763363,"Examples\/examples_canvas\/no_dim_canvasex03.php":1516717114,"Examples\/examples_canvas\/no_test_textpalignex1.php":299956668,"Examples\/examples_canvas\/canvasex05.php":163447943,"Examples\/examples_canvas\/no_test_text-example1.php":3085755642,"Examples\/examples_tick\/no_test_manualtickex1a.php":4137788383,"Examples\/examples_tick\/manualtickex2.php":4280833958,"Examples\/examples_tick\/manualtickex4.php":1713343115,"Examples\/examples_tick\/manualtickex3.php":124771253,"Examples\/examples_tick\/no_test_manualtickex1.php":4137788383,"Examples\/antispamex01.php":1598694200,"Examples\/dataset01.inc.php":2020456451,"Examples\/examples_pie\/pielabelsex2.php":1138740966,"Examples\/examples_pie\/pieex5.php":817796906,"Examples\/examples_pie\/pie3dex5.php":2980736342,"Examples\/examples_pie\/new_pie4.php":3963717405,"Examples\/examples_pie\/no_dim_piecex1.php":4093686262,"Examples\/examples_pie\/pieex2.php":846884926,"Examples\/examples_pie\/pie3dex1.php":1685554085,"Examples\/examples_pie\/pielabelsex1.php":859228868,"Examples\/examples_pie\/pieex8.php":331280339,"Examples\/examples_pie\/pieex1.php":170067650,"Examples\/examples_pie\/pieex9.php":375920002,"Examples\/examples_pie\/pie3dex3.php":1239584783,"Examples\/examples_pie\/no_test_new_pie2.php":1111064030,"Examples\/examples_pie\/pieex4.php":3691984784,"Examples\/examples_pie\/pie3dex2.php":2981977779,"Examples\/examples_pie\/no_test_new_pie3.php":4181096205,"Examples\/examples_pie\/pieex3.php":3188672769,"Examples\/examples_pie\/pie3dex4.php":1525666052,"Examples\/examples_pie\/new_pie1.php":3304509446,"Examples\/examples_pie\/no_dim_piebkgex1.php":4141445591,"Examples\/examples_pie\/pieex6.php":4207985019,"Examples\/examples_pie\/pielabelsex3.php":1054401861,"Examples\/examples_pie\/pieex7.php":942313430,"Examples\/examples_pie\/no_dim_piecex2.php":2682864962,"Examples\/examples_pie\/pielabelsex4.php":1892376045,"Examples\/examples_pie\/pielabelsex5.php":155046889,"Examples\/show-source.php":2412100822,"Examples\/listallflags_helper.php":2688594178,"Examples\/examples_windrose\/windrose_ex2.php":722786444,"Examples\/examples_windrose\/no_test_windrose_icon_ex1.php":2088692380,"Examples\/examples_windrose\/windrose_bgimg_ex1.php":3636282378,"Examples\/examples_windrose\/windrose_ex3.php":2872135782,"Examples\/examples_windrose\/windrose_ex6.php":720746251,"Examples\/examples_windrose\/no_test_windrose_layout_ex1.php":2990842050,"Examples\/examples_windrose\/no_test_windrose_ex9.1.php":2830761834,"Examples\/examples_windrose\/windrose_ex1.php":1752604901,"Examples\/examples_windrose\/windrose_2plots_ex1.php":1879069593,"Examples\/examples_windrose\/windrose_ex8.php":2412780810,"Examples\/examples_windrose\/windrose_ex9.php":2625093990,"Examples\/examples_windrose\/windrose_ex6.1.php":2657425307,"Examples\/examples_windrose\/no_test_windrose_layout_ex0.php":3669510874,"Examples\/examples_windrose\/windrose_ex1b.php":655064535,"Examples\/examples_windrose\/no_test_windrose_ex5.php":3364912621,"Examples\/examples_windrose\/windrose_ex8.1.php":845526938,"Examples\/examples_windrose\/windrose_ex2.1.php":3136712271,"Examples\/examples_windrose\/windrose_ex0.php":1603376337,"Examples\/examples_windrose\/windrose_ex7.php":203682587,"Examples\/examples_windrose\/windrose_ex4.php":3041752281,"Examples\/examples_windrose\/windrose_ex7.1.php":4257301809,"Examples\/examples_scatter\/no_dim_balloonex2.php":2819914204,"Examples\/examples_scatter\/scatterlinkex2.php":1060656785,"Examples\/examples_scatter\/pushpinex1.php":3070496879,"Examples\/examples_scatter\/no_dim_balloonex1.php":898702682,"Examples\/examples_scatter\/ccbp_ex2.php":1650545822,"Examples\/examples_scatter\/footerex1.php":2734747829,"Examples\/examples_scatter\/impulsex3.php":4053599913,"Examples\/examples_scatter\/pushpinex2.php":2212152005,"Examples\/examples_scatter\/scatterex1.php":377777085,"Examples\/examples_scatter\/fieldscatterex1.php":3913986420,"Examples\/examples_scatter\/scatterrotex1.php":742609488,"Examples\/examples_scatter\/scatterlinkex3.php":3981757883,"Examples\/examples_scatter\/ccbp_ex1.php":3303516134,"Examples\/examples_scatter\/markflagex1.php":3219720758,"Examples\/examples_scatter\/loglogex1.php":3917303968,"Examples\/examples_scatter\/impulsex4.php":649442265,"Examples\/examples_scatter\/scatterlinkex4.php":929654985,"Examples\/examples_scatter\/scatterlinkex1.php":2566955766,"Examples\/examples_scatter\/impulsex1.php":130717718,"Examples\/examples_scatter\/impulsex2.php":1612910437,"Examples\/examples_scatter\/bezierex1.php":3074016665,"Examples\/examples_scatter\/scatterex2.php":2225151047,"Examples\/csim_in_html_ex1.php":1023854077,"Examples\/timestampex01.php":1608271147,"Examples\/testsuit.php":2451475634,"Examples\/examples_contour\/no_test_contour2_ex2.php":777638497,"Examples\/examples_contour\/no_test_contour2_ex1.php":3185786246,"Examples\/examples_contour\/no_test_contour2_ex6.php":2128003828,"Examples\/examples_contour\/basic_contourex04.php":1882550663,"Examples\/examples_contour\/basic_contourex01.php":3268206595,"Examples\/examples_contour\/contourex04.php":3469034161,"Examples\/examples_contour\/no_test_contour2_ex5.php":1955182297,"Examples\/examples_contour\/contourex01.php":4111843231,"Examples\/examples_contour\/no_test_contour2_ex7.php":3418669271,"Examples\/examples_contour\/basic_contourex02.php":1597197162,"Examples\/examples_contour\/no_test_contour2_ex4.php":1704148736,"Examples\/examples_contour\/basic_contourex03-2.php":3565467737,"Examples\/examples_contour\/basic_contourex05.php":3789439518,"Examples\/examples_contour\/contourex02.php":2289658920,"Examples\/examples_contour\/contourex05.php":3156278295,"Examples\/examples_contour\/basic_contourex03-1.php":1555920127,"Examples\/examples_contour\/contourex03.php":2025621558,"Examples\/examples_contour\/basic_contourex03-3.php":801494087,"Examples\/examples_contour\/no_test_contour2_ex3.php":841643900,"Examples\/csim_in_html_graph_ex2.php":84265148,"Examples\/examples_general\/example10.php":3605084193,"Examples\/examples_general\/example26.1.php":1110054587,"Examples\/examples_general\/example27.2.php":1803999579,"Examples\/examples_general\/example3.0.2.php":2932540835,"Examples\/examples_general\/example2.1.php":2080038067,"Examples\/examples_general\/example16.1.php":4111975384,"Examples\/examples_general\/example6.1.php":189714940,"Examples\/examples_general\/example15.php":550626648,"Examples\/examples_general\/example17.php":3765642027,"Examples\/examples_general\/example11.php":2685914773,"Examples\/examples_general\/example2.5.php":894204589,"Examples\/examples_general\/example4.php":3400746439,"Examples\/examples_general\/example2.php":930695723,"Examples\/examples_general\/example3.1.1.php":1252058528,"Examples\/examples_general\/example14.php":2601405424,"Examples\/examples_general\/example28.1.php":4144963577,"Examples\/examples_general\/example8.php":3124716901,"Examples\/examples_general\/example27.3.php":3052046577,"Examples\/examples_general\/example3.2.1.php":4022022753,"Examples\/examples_general\/example16.6.php":3585447504,"Examples\/examples_general\/example3.php":442667314,"Examples\/examples_general\/example6.2.php":2064598227,"Examples\/examples_general\/example3.0.3.php":1686410268,"Examples\/examples_general\/example1.2.php":1990990000,"Examples\/examples_general\/example5.1.php":2771834842,"Examples\/examples_general\/example28.3.php":2969799324,"Examples\/examples_general\/example9.1.php":17918131,"Examples\/examples_general\/example28.php":130300580,"Examples\/examples_general\/example1.php":2157549833,"Examples\/examples_general\/example3.4.php":2195603465,"Examples\/examples_general\/example8.1.php":186060499,"Examples\/examples_general\/example0.php":2831626515,"Examples\/examples_general\/example13.php":37110442,"Examples\/examples_general\/example1.1.php":3511124089,"Examples\/examples_general\/example9.php":2147118250,"Examples\/examples_general\/example6.php":3282181510,"Examples\/examples_general\/example3.2.php":1447071124,"Examples\/examples_general\/example27.1.php":1429093581,"Examples\/examples_general\/example0-0.php":2066946568,"Examples\/examples_general\/example3.1.php":4021802656,"Examples\/examples_general\/example7.php":4045065990,"Examples\/examples_general\/example27.php":2261669287,"Examples\/examples_general\/example3.4.1.php":2219067548,"Examples\/examples_general\/exampleex9.php":1594721471,"Examples\/examples_general\/example5.php":1502876208,"Examples\/examples_general\/example28.2.php":2860494426,"Examples\/examples_general\/example26.php":1441475455,"Examples\/examples_general\/example9.2.php":1377208584,"Examples\/examples_general\/example16.php":3996629462,"Examples\/examples_general\/example3.0.1.php":3278904186,"Examples\/examples_general\/example2.6.php":4004128745,"Examples\/examples_general\/example3.2.2.php":4073282684,"Examples\/examples_general\/example3.3.php":2313044045,"Examples\/assets\/dataset01.inc.php":2020456451,"Examples\/csim_in_html_graph_ex1.php":3041610065,"Examples\/examples_background\/background_type_ex2.php":3597061857,"Examples\/examples_background\/backgroundex02.php":530500674,"Examples\/examples_background\/background_type_ex4.php":3440987253,"Examples\/examples_background\/background_type_ex3.php":1071989076,"Examples\/examples_background\/backgroundex03.php":323890316,"Examples\/examples_background\/background_type_ex1.php":947090104,"Examples\/examples_background\/background_type_ex0.php":274211385,"Examples\/examples_background\/backgroundex01.php":2842538680,"Examples\/examples_stock\/no_test_boxstockex2.php":1038191341,"Examples\/examples_stock\/no_test_stockex1.php":1463289409,"Examples\/examples_stock\/no_test_stockex2.php":2104809252,"Examples\/examples_stock\/no_test_boxstockex1.php":3196081499,"Examples\/nullvalueex01.php":490215382,"Examples\/examples_csim\/mulyaxiscsimex1.php":859126986,"Examples\/examples_csim\/csim_in_html_ex2.php":308665523,"Examples\/examples_csim\/scatter_csimex1.php":3605667389,"Examples\/examples_csim\/pie_csimex1.php":2521371828,"Examples\/examples_csim\/barcsim_details_omit.php":150148336,"Examples\/examples_csim\/barline_csimex1.php":1792710276,"Examples\/examples_csim\/no_test_tableex01_csim.php":3236381968,"Examples\/examples_csim\/no_test_ganttcsimex02.php":1021871128,"Examples\/examples_csim\/bar_csimex3.php":1393937049,"Examples\/examples_csim\/no_test_matrix_csimex01.php":3873151991,"Examples\/examples_csim\/no_test_tablebarex1_csim.php":500557947,"Examples\/examples_csim\/bar_csimex1.php":3056759717,"Examples\/examples_csim\/barlinefreq_csimex1.php":1951608013,"Examples\/examples_csim\/titlecsimex01.php":3482411650,"Examples\/examples_csim\/no_test_polar_csimex1.php":3028181567,"Examples\/examples_csim\/csim_in_html_ex1.php":1023854077,"Examples\/examples_csim\/no_test_radar_csimex1.php":3313163807,"Examples\/examples_csim\/no_test_piec_csimex1.php":3620803832,"Examples\/examples_csim\/no_test_ganttcsimex01.php":1485064227,"Examples\/examples_csim\/csim_in_html_graph_ex2.php":3342568144,"Examples\/examples_csim\/bar_csimex2.php":1224026938,"Examples\/examples_csim\/csim_in_html_graph_ex1.php":3192174498,"Examples\/examples_csim\/imgmarkercsimex1.php":76274080,"Examples\/examples_csim\/barcsim_popup.php":2977205185,"Examples\/examples_csim\/pie3d_csimex1.php":3902599551,"Examples\/examples_csim\/no_test_boxstockcsimex1.php":1615786675,"Examples\/examples_bar\/no_dim_horizbarex6.php":4281058342,"Examples\/examples_bar\/plotbanddensity_ex2.php":2724966724,"Examples\/examples_bar\/example20.5.php":4283182421,"Examples\/examples_bar\/example18.php":2589998003,"Examples\/examples_bar\/barimg1.php":1695995693,"Examples\/examples_bar\/barlinealphaex1.php":3531744531,"Examples\/examples_bar\/no_test_new_bar4.php":267332694,"Examples\/examples_bar\/accbarframeex01.php":4218945349,"Examples\/examples_bar\/groupbar1.php":2850564231,"Examples\/examples_bar\/manual_textscale_ex3.php":2053521905,"Examples\/examples_bar\/plotbanddensity_ex1.php":3872796579,"Examples\/examples_bar\/example20.4.php":1593622196,"Examples\/examples_bar\/manual_textscale_ex2.php":583127958,"Examples\/examples_bar\/no_dim_bartutex5.php":531001653,"Examples\/examples_bar\/bargradsmallex2.php":4036272169,"Examples\/examples_bar\/example16.2.php":739861846,"Examples\/examples_bar\/barscalecallback1.php":4169911871,"Examples\/examples_bar\/example21.php":2885636790,"Examples\/examples_bar\/barint2.php":787676210,"Examples\/examples_bar\/bargradsmallex4.php":4029637921,"Examples\/examples_bar\/bargradsmallex1.php":3077005220,"Examples\/examples_bar\/example25.php":3514703073,"Examples\/examples_bar\/example25.2.php":2572856146,"Examples\/examples_bar\/accbarex1.php":4273822482,"Examples\/examples_bar\/no_dim_grace_ex0.php":1285183608,"Examples\/examples_bar\/alphabar.php":2727084363,"Examples\/examples_bar\/bargradex2.php":619163370,"Examples\/examples_bar\/bargradsmallex5.php":874912562,"Examples\/examples_bar\/bartutex12.php":2268487716,"Examples\/examples_bar\/bartutex1.php":3120234593,"Examples\/examples_bar\/example16.4.php":3471832280,"Examples\/examples_bar\/no_dim_grace_ex3.php":1344888519,"Examples\/examples_bar\/no_dim_bartutex6.php":998457972,"Examples\/examples_bar\/no_dim_horizbarex2.php":1620506080,"Examples\/examples_bar\/example25.1.php":1187219793,"Examples\/examples_bar\/bargradsmallex3.php":709676326,"Examples\/examples_bar\/example20.2.php":2996130725,"Examples\/examples_bar\/bargradex1.php":673433303,"Examples\/examples_bar\/no_test_new_bar6.php":2329583222,"Examples\/examples_bar\/example24.php":4069839189,"Examples\/examples_bar\/barlinefreqex1.php":1579119390,"Examples\/examples_bar\/negbarvalueex01.php":620861965,"Examples\/examples_bar\/no_dim_logbarex1.php":1369665623,"Examples\/examples_bar\/bargradex5.php":613224969,"Examples\/examples_bar\/example20.php":3445898131,"Examples\/examples_bar\/example19.1.php":1500220585,"Examples\/examples_bar\/horizbarex4.php":469018933,"Examples\/examples_bar\/example22.php":1954784550,"Examples\/examples_bar\/barint1.php":3107457505,"Examples\/examples_bar\/example19.php":3491736028,"Examples\/examples_bar\/example16.5.php":3410546084,"Examples\/examples_bar\/bargradex6.php":2040242625,"Examples\/examples_bar\/new_bar3.php":255967884,"Examples\/examples_bar\/bargradex3.php":988195439,"Examples\/examples_bar\/bartut4.php":2658355420,"Examples\/examples_bar\/plotbanddensity_ex0.php":3567323455,"Examples\/examples_bar\/accbarframeex02.php":755924279,"Examples\/examples_bar\/no_dim_horizbarex3.php":666280243,"Examples\/examples_bar\/bargradsmallex8.php":2228730475,"Examples\/examples_bar\/barformatcallbackex1.php":2280534859,"Examples\/examples_bar\/no_dim_horizbarex1.php":2738179777,"Examples\/examples_bar\/bargradsmallex7.php":4096612819,"Examples\/examples_bar\/example16.3.php":1804648743,"Examples\/examples_bar\/example20.3.php":4016924449,"Examples\/examples_bar\/bargradex4.php":2206227269,"Examples\/examples_bar\/bartut2.php":3591510693,"Examples\/examples_bar\/no_dim_manual_textscale_ex1.php":479271997,"Examples\/examples_bar\/example20.1.php":2166797334,"Examples\/examples_bar\/no_dim_grace_ex2.php":3871239530,"Examples\/examples_bar\/no_test_new_bar1.php":2261160551,"Examples\/examples_bar\/manual_textscale_ex4.php":675896381,"Examples\/examples_bar\/bar2scalesex1.php":3921743753,"Examples\/examples_bar\/barpatternex1.php":67093787,"Examples\/examples_bar\/bargradsmallex6.php":2116615247,"Examples\/examples_bar\/bartut3.php":739192445,"Examples\/examples_bar\/example23.php":1090983928,"Examples\/examples_bar\/accbarframeex03.php":4146517148,"Examples\/examples_bar\/no_dim_grace_ex1.php":3020275855,"Examples\/prepaccdata_example.php":3678466055,"Examples\/tabtitleex1.php":818574203,"src\/util\/ColorFactory.php":1052826095,"src\/util\/ReadFileData.php":4049970401,"src\/util\/FuncGenerator.php":3927321571,"src\/util\/Rectangle.php":4280331924,"src\/util\/JpGraphError.php":3155162120,"src\/util\/LinearRegression.php":885847148,"src\/util\/ErrMsgText.php":1668802218,"src\/util\/Constants.php":2814181351,"src\/util\/Helper.php":2354442648,"src\/util\/JpGraphException.php":424501896,"src\/util\/FlagCache.php":3652676929,"src\/util\/Bezier.php":1038694385,"src\/util\/GanttConstraint.php":3624780959,"src\/util\/Spline.php":411438215,"src\/util\/DateLocale.php":657794205,"src\/util\/JpgTimer.php":375733437,"src\/image\/Progress.php":280698706,"src\/image\/HandDigits.php":666372080,"src\/image\/LinkArrow.php":1392962961,"src\/image\/PredefIcons.php":3123717380,"src\/image\/Footer.php":502393418,"src\/image\/ImgStreamCache.php":3787815454,"src\/image\/AntiSpam.php":2651515839,"src\/image\/ImgTrans.php":1106362479,"src\/image\/FieldArrow.php":1666341488,"src\/image\/GanttLink.php":1476270323,"src\/image\/Constants.php":2529609421,"src\/image\/ImgData_PushPins.php":186565683,"src\/image\/RGB.php":44695606,"src\/image\/ImgData_Bevels.php":3609057848,"src\/image\/ImgData_Squares.php":829805429,"src\/image\/IconImage.php":3232973281,"src\/image\/ImgData_Diamonds.php":1737199804,"src\/image\/ImgData_Balls.php":2217751931,"src\/image\/RotImage.php":41572398,"src\/image\/ImgData.php":2031485240,"src\/image\/ImgData_Stars.php":1122775794,"src\/image\/DigitalLED74.php":338923329,"src\/image\/Image.php":3960445376,"src\/image\/FlagImages.php":4202921449,"src\/plot\/ContourPlot.php":769551566,"src\/plot\/RadarPlot.php":3150747146,"src\/plot\/GanttPlotObject.php":678845078,"src\/plot\/AccLinePlot.php":2182914435,"src\/plot\/WindrosePlot.php":2167860690,"src\/plot\/PiePlot.php":3821724407,"src\/plot\/IconPlot.php":3043526833,"src\/plot\/PolarPlot.php":3031217819,"src\/plot\/GroupBarPlot.php":2798316978,"src\/plot\/Contour.php":1091908839,"src\/plot\/DisplayValue.php":3116657967,"src\/plot\/FieldPlot.php":2831449332,"src\/plot\/PlotBand.php":420231876,"src\/plot\/PlotMark.php":2388818461,"src\/plot\/LinePlot.php":1805444293,"src\/plot\/GanttVLine.php":3094051652,"src\/plot\/PlotLine.php":1776900896,"src\/plot\/Constants.php":2425811817,"src\/plot\/ErrorLinePlot.php":3301151053,"src\/plot\/LegendStyle.php":371061796,"src\/plot\/ErrorPlot.php":268766954,"src\/plot\/StockPlot.php":1915748396,"src\/plot\/MileStone.php":4249556177,"src\/plot\/ScatterPlot.php":4266365175,"src\/plot\/AccBarPlot.php":3149444717,"src\/plot\/Plot.php":692455097,"src\/plot\/LineErrorPlot.php":1849425615,"src\/plot\/BoxPlot.php":2281446906,"src\/plot\/GanttBar.php":1689065280,"src\/plot\/BarPlot.php":737038656,"src\/plot\/Gradient.php":509382830,"src\/plot\/PiePlotC.php":2529366385,"src\/plot\/PiePlot3D.php":4193440338,"src\/plot\/MeshInterpolate.php":2837018689,"src\/unused\/DateScaleUtils.php":3785118471,"src\/graph\/GanttActivityInfo.php":3722020196,"src\/graph\/PolarAxis.php":4274578971,"src\/graph\/PolarScale.php":2713178952,"src\/graph\/MGraph.php":504022627,"src\/graph\/LinearTicks.php":953370111,"src\/graph\/RadarLogTicks.php":4071570835,"src\/graph\/WindrosePlotScale.php":476068710,"src\/graph\/Ticks.php":3164348343,"src\/graph\/Grid.php":1302300759,"src\/graph\/RectPatternDiagCross.php":1846729938,"src\/graph\/RectPatternVert.php":3843120523,"src\/graph\/Rectangle.php":890893736,"src\/graph\/HeaderProperty.php":459056962,"src\/graph\/CanvasScale.php":1075692189,"src\/graph\/LogTicks.php":3746450377,"src\/graph\/RadarGraph.php":2158319271,"src\/graph\/LineProperty.php":2785330486,"src\/graph\/RadarAxis.php":2960126205,"src\/graph\/Axis.php":2746556504,"src\/graph\/RectPatternHor.php":1720196803,"src\/graph\/Constants.php":2718037565,"src\/graph\/DateScale.php":810002221,"src\/graph\/PieGraph.php":2172843589,"src\/graph\/RectPatternFactory.php":3111399812,"src\/graph\/PolarGraph.php":1684233987,"src\/graph\/WindroseGraph.php":4016230360,"src\/graph\/RectPattern3DPlane.php":3762076780,"src\/graph\/RectPattern.php":4216970862,"src\/graph\/CCBPGraph.php":260271937,"src\/graph\/SymChar.php":3304748193,"src\/graph\/RadarLinearTicks.php":831007843,"src\/graph\/PolarLogScale.php":2212804544,"src\/graph\/RectPatternRDiag.php":3874896272,"src\/graph\/Shape.php":3180938425,"src\/graph\/LogScale.php":3127907477,"src\/graph\/RectPatternLDiag.php":3910455513,"src\/graph\/GanttScale.php":3551884072,"src\/graph\/AxisPrototype.php":3587289459,"src\/graph\/Legend.php":922178998,"src\/graph\/RadarGrid.php":3017867721,"src\/graph\/HorizontalGridLine.php":560195002,"src\/graph\/GanttGraph.php":3478769082,"src\/graph\/RectPatternCross.php":578882587,"src\/graph\/LinearScale.php":2730172715,"src\/graph\/Graph.php":180064554,"src\/graph\/CanvasGraph.php":3683639043,"src\/graph\/RectPatternSolid.php":1791400224,"src\/config.inc.php":2481474141,"src\/lang\/en.inc.php":312931806,"src\/lang\/de.inc.php":479657751,"src\/lang\/prod.inc.php":4252430346,"src\/themes\/OceanTheme.php":2857323119,"src\/themes\/SoftyTheme.php":613804062,"src\/themes\/GreenTheme.php":147329564,"src\/themes\/Theme.php":1000912975,"src\/themes\/OrangeTheme.php":3603867561,"src\/themes\/AquaTheme.php":2968107384,"src\/themes\/RoseTheme.php":1911953556,"src\/themes\/PastelTheme.php":3733019998,"src\/themes\/UniversalTheme.php":55712916,"src\/themes\/VividTheme.php":3825538192,"src\/includes\/polyfills.php":2638163207,"src\/includes\/_font.constants.php":1068117750,"src\/includes\/_general.constants.php":4239026716,"src\/includes\/all_constants.php":76481714,"src\/includes\/_cache.constants.php":1905219645,"src\/includes\/_format.constants.php":1307015972,"src\/text\/CanvasRectangleText.php":2498730544,"src\/text\/SuperScriptText.php":97491044,"src\/text\/GTextTable.php":3842679379,"src\/text\/GraphTabTitle.php":2073973059,"src\/text\/LanguageConv.php":938304366,"src\/text\/Constants.php":3709973571,"src\/text\/TTF.php":1003664220,"src\/text\/TextPropertyBelow.php":3000650346,"src\/text\/TextProperty.php":2796195837,"src\/text\/GTextTableCell.php":2864120085,"src\/text\/Text.php":4291034488}} \ No newline at end of file diff --git a/.php_cs.php b/.php_cs.php index e0769a63..bf17f560 100644 --- a/.php_cs.php +++ b/.php_cs.php @@ -12,7 +12,7 @@ $version = $composerinfo->extra->version; $header = "JPGraph - Community Edition"; -$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php73($header), [ +$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php74($header), [ 'declare_strict_types' => false, 'void_return' => false, 'static_lambda' => false, @@ -33,7 +33,8 @@ $project_path = getcwd(); $config->getFinder() ->in([ - __DIR__ + __DIR__.'/src', + __DIR__.'/tests' ]) ->name('*.php') ->exclude([ diff --git a/Examples/assets/dataset01.inc.php b/Examples/assets/dataset01.inc.php index 5d3b5b1a..20dbc5b5 100755 --- a/Examples/assets/dataset01.inc.php +++ b/Examples/assets/dataset01.inc.php @@ -1,14 +1,14 @@ 1.0885908919277, 1 => 0.99034385297982, 2 => 0.97005467188578, 3 => 0.99901201350824, 4 => 1.1263167971152, 5 => 1.0582808133448, 6 => 1.0216740689064, 7 => 0.96626236356644, 8 => 1.0125912828768, 9 => 0.99047473992496, 10 => 0.99102472104561, 11 => 0.98500781573283, 12 => 0.91933668914198, 13 => 0.92234602792711, 14 => 0.88933863410054, 15 => 0.94236150975178, 16 => 0.98924287679116, 17 => 1.0342765545566, 18 => 1.0538510278089, 19 => 0.93496076181191, 20 => 0.90944479677235, 21 => 0.80831866316983, 22 => 0.81912434615535, 23 => 0.83143770042109, 24 => 0.86972168159496, 25 => 0.92645774571577, 26 => 0.81169120061422, 27 => 0.84409853057606, 28 => 0.89065856249272, 29 => 0.83551478929348, 30 => 0.87015680306726, 31 => 0.76063327042172, 32 => 0.82720958380697, 33 => 0.86565279505723, 34 => 0.77858966246836, 35 => 0.81009606378237, 36 => 0.80485136798149, 37 => 0.82641461943804, 38 => 0.87442020676513, 39 => 0.89589150146825, 40 => 0.92082995956816, 41 => 0.92614241931726, 42 => 0.96915564652581, 43 => 1.003753706293, 44 => 0.97438809368023, 45 => 1.011556766867, 46 => 1.0785692014115, 47 => 1.0586915420364, 48 => 1.284210059027, 49 => 1.3424512661794, 50 => 1.1743365450983, 51 => 1.2387345559532, 52 => 1.2485728609648, 53 => 1.2330096418558, 54 => 1.1857882621709, 55 => 1.2344956522411, 56 => 1.2047675730648, 57 => 1.292419000136, 58 => 1.3405480219013, 59 => 1.3971752198648, 60 => 1.4359555309649, 61 => 1.3243735045701, 62 => 1.2359389187087, 63 => 1.2201320423161, 64 => 1.3602246705197, 65 => 1.360886940568, 66 => 1.3493553211075, 67 => 1.4401769929405, 68 => 1.3979767849951, 69 => 1.4545882591647, 70 => 1.337801210539, 71 => 1.3793601365977, 72 => 1.4586769476223, 73 => 1.5230946076475, 74 => 1.4124735946125, 75 => 1.4030318592551, 76 => 1.349158816711, 77 => 1.3994840622105, 78 => 1.4239672612346, 79 => 1.40812256221, 80 => 1.4583856197192, 81 => 1.4613314581567, 82 => 1.6756755916668, 83 => 1.8580313939158, 84 => 1.8342360959805, 85 => 1.9216082598086, 86 => 1.9478846253628, 87 => 2.0244872112436, 88 => 1.9560660777181, 89 => 1.8415152640121, 90 => 1.8471764273372, 91 => 1.8889886695023, 92 => 1.8195007209252, 93 => 1.8960270595999, 94 => 1.8644490575386, 95 => 1.971196340772, 96 => 2.015583152659, 97 => 1.9959882430428, 98 => 2.1063668082622, 99 => 2.1719175769191, 100 => 2.1875938345039, 101 => 2.1587594039981, 102 => 2.1278241823627, 103 => 2.298793912594, 104 => 2.3723774302753, 105 => 2.4413392788904, 106 => 2.4834594954125, 107 => 2.5164271989421, 108 => 2.48274719503, 109 => 2.4492997581034, 110 => 2.1412357263019, 111 => 2.0314268112566, 112 => 1.9596098764628, 113 => 2.0250983127109, 114 => 1.924959829851, 115 => 1.9603612943993, 116 => 2.0540576271866, 117 => 2.0568349960689, 118 => 2.0811524692325, 119 => 2.0581964759165, 120 => 2.020162840272, 121 => 2.0626517638667, 122 => 1.9286563823225, 123 => 2.0127912437563, 124 => 1.9491858277931, 125 => 1.8692310150316, 126 => 1.6993275416762, 127 => 1.5849680675709, 128 => 1.5422481968304, 129 => 1.603188853916, 130 => 1.6449504349551, 131 => 1.6570332084417, 132 => 1.7563884552262, 133 => 1.7346008663135, 134 => 1.741307942998, 135 => 1.7415848536123, 136 => 1.7014366147405, 137 => 1.6719646364256, 138 => 1.7092888030342, 139 => 1.7371529028402, 140 => 1.7019154041991, 141 => 1.7662473702497, 142 => 1.8480766044197, 143 => 1.8355114169662, 144 => 1.7819817315586, 145 => 1.7148079481036, 146 => 1.6241989833489, 147 => 1.4624626548138, 148 => 1.5040542012939, 149 => 1.442295346913, 150 => 1.4187087000604, 151 => 1.4225097958511, 152 => 1.5001324671865, 153 => 1.4584802723727, 154 => 1.5342572961469, 155 => 1.514133174734, 156 => 1.5443934302345, 157 => 1.5476883863698, 158 => 1.6080128685721, 159 => 1.5816649899396, 160 => 1.5310436755918, 161 => 1.518280754595, 162 => 1.5216184249044, 163 => 1.4393414811719, 164 => 1.409379582707, 165 => 1.436861898056, 166 => 1.4739894373751, 167 => 1.4512785421546, 168 => 1.496057581316, 169 => 1.3817455776456, 170 => 1.2990312802211, 171 => 1.3073949130374, 172 => 1.2473214566896, 173 => 1.1105915111374, 174 => 1.0420360580822, 175 => 1.1744654786356, 176 => 1.0602876800127, 177 => 1.074408841208, 178 => 1.18387615056, 179 => 1.1890999077101, 180 => 1.0549293038746, 181 => 1.0570601708416, 182 => 1.0800216692849, 183 => 0.96274117702549, 184 => 0.9501673977047, 185 => 0.97710108451711, 186 => 0.89886322996001, 187 => 0.9239453369566, 188 => 0.96299807255386, 189 => 1.0105532418267, 190 => 1.0164009465948, 191 => 1.0413107606824, 192 => 1.0475248122459, 193 => 1.0266007451985, 194 => 1.0159556206533, 195 => 1.0943852922517, 196 => 1.0750418553654, 197 => 0.97774129938915, 198 => 0.98590717162284, 199 => 0.87713795242119, 200 => 0.90770624057599, 201 => 0.87557547650302, 202 => 0.95754187545856, 203 => 1.0111465867283, 204 => 0.93224663470275, 205 => 0.93886113881632, 206 => 0.94128877256653, 207 => 0.9559086414866, 208 => 0.97782683000598, 209 => 1.0648991708916, 210 => 1.1759619281479, 211 => 1.1323001889786, 212 => 1.2173222321276, 213 => 1.192219780365, 214 => 1.1507367671992, 215 => 1.0062415877475, 216 => 1.0017043563084, 217 => 0.94468309902865, 218 => 0.99384124056529, 219 => 1.0514822705943, 220 => 1.0451723914426, 221 => 1.0776122119814, 222 => 1.2013601009631, 223 => 1.1765086398423, 224 => 1.2387735028784, 225 => 1.2441365026242, 226 => 1.2694500268723, 227 => 1.2789962941485, 228 => 1.2442094256309, 229 => 1.2352688438234, 230 => 1.2571277155372, 231 => 1.3291795377077, 232 => 1.2703480599183, 233 => 1.30729508393, 234 => 1.3233030218068, 235 => 1.2861232143244, 236 => 1.3168684998023, 237 => 1.2499001566772, 238 => 1.2622769692485, 239 => 1.2160789893735, 240 => 1.2288877111321, 241 => 1.222967255453, 242 => 1.2998243638567, 243 => 1.3443008723449, 244 => 1.339680674028, 245 => 1.3779965791538, 246 => 1.3560080691721, 247 => 1.3470544172094, 248 => 1.3166882067851, 249 => 1.4452459865932, 250 => 1.4514278120119, 251 => 1.413690283372, 252 => 1.4178934332405, 253 => 1.4237414657565, 254 => 1.3777636409301, 255 => 1.4041849448389, 256 => 1.4049533546771, 257 => 1.4277375831259, 258 => 1.4224090113077, 259 => 1.4647907974628, 260 => 1.4243190632657, 261 => 1.4286580133998, 262 => 1.4348828641501, 263 => 1.415409243977, 264 => 1.4476028555859, 265 => 1.4538821661641, 266 => 1.4883184435336, 267 => 1.4205032194634, 268 => 1.3856543933372, 269 => 1.2716906168086, 270 => 1.3462117624752, 271 => 1.3003015423298, 272 => 1.2148491725878, 273 => 1.2605381058318, 274 => 1.2690047369619, 275 => 1.3327723638582, 276 => 1.3118643588249, 277 => 1.293007944258, 278 => 1.2548761810876, 279 => 1.3335015938603, 280 => 1.3152744239077, 281 => 1.2564376463182, 282 => 1.2478417859372, 283 => 1.2518821298414, 284 => 1.2036453589032, 285 => 1.1798564480155, 286 => 1.2062515260098, 287 => 1.2129817801455, 288 => 1.1405762096618, 289 => 1.0161049810033, 290 => 1.0030124197677, 291 => 1.0111565082559, 292 => 1.0084286839061, 293 => 0.95068297130577, 294 => 1.0450005357207, 295 => 1.211596899292, 296 => 1.3762615912002, 297 => 1.530127116787, 298 => 1.5167370832585, 299 => 1.6259521507076, 300 => 1.6518467383405, 301 => 1.7713043850286, 302 => 1.6396708687084, 303 => 1.6116177484122, 304 => 1.5225729470695, 305 => 1.6101471149808, ]; $xdata = [ - 0 => 444348000, 1 => 446853600, 2 => 449532000, 3 => 452124000, 4 => 454802400, 5 => 457394400, 6 => 460072800, 7 => 462751200, 8 => 465343200, 9 => 468021600, 10 => 470613600, 11 => 473292000, 12 => 475970400, 13 => 478389600, 14 => 481068000, 15 => 483660000, 16 => 486338400, 17 => 488930400, 18 => 491608800, 19 => 494287200, 20 => 496879200, 21 => 499557600, 22 => 502149600, 23 => 504828000, 24 => 507506400, 25 => 509925600, 26 => 512604000, 27 => 515196000, 28 => 517874400, 29 => 520466400, 30 => 523144800, 31 => 525823200, 32 => 528415200, 33 => 531093600, 34 => 533685600, 35 => 536364000, 36 => 539042400, 37 => 541461600, 38 => 544140000, 39 => 546732000, 40 => 549410400, 41 => 552002400, 42 => 554680800, 43 => 557359200, 44 => 559951200, 45 => 562629600, 46 => 565221600, 47 => 567900000, 48 => 570578400, 49 => 573084000, 50 => 575762400, 51 => 578354400, 52 => 581032800, 53 => 583624800, 54 => 586303200, 55 => 588981600, 56 => 591573600, 57 => 594252000, 58 => 596844000, 59 => 599522400, 60 => 602200800, 61 => 604620000, 62 => 607298400, 63 => 609890400, 64 => 612568800, 65 => 615160800, 66 => 617839200, 67 => 620517600, 68 => 623109600, 69 => 625788000, 70 => 628380000, 71 => 631058400, 72 => 633736800, 73 => 636156000, 74 => 638834400, 75 => 641426400, 76 => 644104800, 77 => 646696800, 78 => 649375200, 79 => 652053600, 80 => 654645600, 81 => 657324000, 82 => 659916000, 83 => 662594400, 84 => 665272800, 85 => 667692000, 86 => 670370400, 87 => 672962400, 88 => 675640800, 89 => 678232800, 90 => 680911200, 91 => 683589600, 92 => 686181600, 93 => 688860000, 94 => 691452000, 95 => 694130400, 96 => 696808800, 97 => 699314400, 98 => 701992800, 99 => 704584800, 100 => 707263200, 101 => 709855200, 102 => 712533600, 103 => 715212000, 104 => 717804000, 105 => 720482400, 106 => 723074400, 107 => 725752800, 108 => 728431200, 109 => 730850400, 110 => 733528800, 111 => 736120800, 112 => 738799200, 113 => 741391200, 114 => 744069600, 115 => 746748000, 116 => 749340000, 117 => 752018400, 118 => 754610400, 119 => 757288800, 120 => 759967200, 121 => 762386400, 122 => 765064800, 123 => 767656800, 124 => 770335200, 125 => 772927200, 126 => 775605600, 127 => 778284000, 128 => 780876000, 129 => 783554400, 130 => 786146400, 131 => 788824800, 132 => 791503200, 133 => 793922400, 134 => 796600800, 135 => 799192800, 136 => 801871200, 137 => 804463200, 138 => 807141600, 139 => 809820000, 140 => 812412000, 141 => 815090400, 142 => 817682400, 143 => 820360800, 144 => 823039200, 145 => 825544800, 146 => 828223200, 147 => 830815200, 148 => 833493600, 149 => 836085600, 150 => 838764000, 151 => 841442400, 152 => 844034400, 153 => 846712800, 154 => 849304800, 155 => 851983200, 156 => 854661600, 157 => 857080800, 158 => 859759200, 159 => 862351200, 160 => 865029600, 161 => 867621600, 162 => 870300000, 163 => 872978400, 164 => 875570400, 165 => 878248800, 166 => 880840800, 167 => 883519200, 168 => 886197600, 169 => 888616800, 170 => 891295200, 171 => 893887200, 172 => 896565600, 173 => 899157600, 174 => 901836000, 175 => 904514400, 176 => 907106400, 177 => 909784800, 178 => 912376800, 179 => 915055200, 180 => 917733600, 181 => 920152800, 182 => 922831200, 183 => 925423200, 184 => 928101600, 185 => 930693600, 186 => 933372000, 187 => 936050400, 188 => 938642400, 189 => 941320800, 190 => 943912800, 191 => 946591200, 192 => 949269600, 193 => 951775200, 194 => 954453600, 195 => 957045600, 196 => 959724000, 197 => 962316000, 198 => 964994400, 199 => 967672800, 200 => 970264800, 201 => 972943200, 202 => 975535200, 203 => 978213600, 204 => 980892000, 205 => 983311200, 206 => 985989600, 207 => 988581600, 208 => 991260000, 209 => 993852000, 210 => 996530400, 211 => 999208800, 212 => 1001800800, 213 => 1004479200, 214 => 1007071200, + 0 => 444348000, 1 => 446853600, 2 => 449532000, 3 => 452124000, 4 => 454802400, 5 => 457394400, 6 => 460072800, 7 => 462751200, 8 => 465343200, 9 => 468021600, 10 => 470613600, 11 => 473292000, 12 => 475970400, 13 => 478389600, 14 => 481068000, 15 => 483660000, 16 => 486338400, 17 => 488930400, 18 => 491608800, 19 => 494287200, 20 => 496879200, 21 => 499557600, 22 => 502149600, 23 => 504828000, 24 => 507506400, 25 => 509925600, 26 => 512604000, 27 => 515196000, 28 => 517874400, 29 => 520466400, 30 => 523144800, 31 => 525823200, 32 => 528415200, 33 => 531093600, 34 => 533685600, 35 => 536364000, 36 => 539042400, 37 => 541461600, 38 => 544140000, 39 => 546732000, 40 => 549410400, 41 => 552002400, 42 => 554680800, 43 => 557359200, 44 => 559951200, 45 => 562629600, 46 => 565221600, 47 => 567900000, 48 => 570578400, 49 => 573084000, 50 => 575762400, 51 => 578354400, 52 => 581032800, 53 => 583624800, 54 => 586303200, 55 => 588981600, 56 => 591573600, 57 => 594252000, 58 => 596844000, 59 => 599522400, 60 => 602200800, 61 => 604620000, 62 => 607298400, 63 => 609890400, 64 => 612568800, 65 => 615160800, 66 => 617839200, 67 => 620517600, 68 => 623109600, 69 => 625788000, 70 => 628380000, 71 => 631058400, 72 => 633736800, 73 => 636156000, 74 => 638834400, 75 => 641426400, 76 => 644104800, 77 => 646696800, 78 => 649375200, 79 => 652053600, 80 => 654645600, 81 => 657324000, 82 => 659916000, 83 => 662594400, 84 => 665272800, 85 => 667692000, 86 => 670370400, 87 => 672962400, 88 => 675640800, 89 => 678232800, 90 => 680911200, 91 => 683589600, 92 => 686181600, 93 => 688860000, 94 => 691452000, 95 => 694130400, 96 => 696808800, 97 => 699314400, 98 => 701992800, 99 => 704584800, 100 => 707263200, 101 => 709855200, 102 => 712533600, 103 => 715212000, 104 => 717804000, 105 => 720482400, 106 => 723074400, 107 => 725752800, 108 => 728431200, 109 => 730850400, 110 => 733528800, 111 => 736120800, 112 => 738799200, 113 => 741391200, 114 => 744069600, 115 => 746748000, 116 => 749340000, 117 => 752018400, 118 => 754610400, 119 => 757288800, 120 => 759967200, 121 => 762386400, 122 => 765064800, 123 => 767656800, 124 => 770335200, 125 => 772927200, 126 => 775605600, 127 => 778284000, 128 => 780876000, 129 => 783554400, 130 => 786146400, 131 => 788824800, 132 => 791503200, 133 => 793922400, 134 => 796600800, 135 => 799192800, 136 => 801871200, 137 => 804463200, 138 => 807141600, 139 => 809820000, 140 => 812412000, 141 => 815090400, 142 => 817682400, 143 => 820360800, 144 => 823039200, 145 => 825544800, 146 => 828223200, 147 => 830815200, 148 => 833493600, 149 => 836085600, 150 => 838764000, 151 => 841442400, 152 => 844034400, 153 => 846712800, 154 => 849304800, 155 => 851983200, 156 => 854661600, 157 => 857080800, 158 => 859759200, 159 => 862351200, 160 => 865029600, 161 => 867621600, 162 => 870300000, 163 => 872978400, 164 => 875570400, 165 => 878248800, 166 => 880840800, 167 => 883519200, 168 => 886197600, 169 => 888616800, 170 => 891295200, 171 => 893887200, 172 => 896565600, 173 => 899157600, 174 => 901836000, 175 => 904514400, 176 => 907106400, 177 => 909784800, 178 => 912376800, 179 => 915055200, 180 => 917733600, 181 => 920152800, 182 => 922831200, 183 => 925423200, 184 => 928101600, 185 => 930693600, 186 => 933372000, 187 => 936050400, 188 => 938642400, 189 => 941320800, 190 => 943912800, 191 => 946591200, 192 => 949269600, 193 => 951775200, 194 => 954453600, 195 => 957045600, 196 => 959724000, 197 => 962316000, 198 => 964994400, 199 => 967672800, 200 => 970264800, 201 => 972943200, 202 => 975535200, 203 => 978213600, 204 => 980892000, 205 => 983311200, 206 => 985989600, 207 => 988581600, 208 => 991260000, 209 => 993852000, 210 => 996530400, 211 => 999208800, 212 => 1001800800, 213 => 1004479200, 214 => 1007071200, 215 => 1009749600, 216 => 1012428000, 217 => 1014847200, 218 => 1017525600, 219 => 1020117600, 220 => 1022796000, 221 => 1025388000, 222 => 1028066400, 223 => 1030744800, 224 => 1033336800, 225 => 1036015200, 226 => 1038607200, 227 => 1041285600, 228 => 1043964000, 229 => 1046383200, @@ -28,4 +28,4 @@ 295 => 1220133600, 296 => 1222725600, 297 => 1225404000, 298 => 1227996000, 299 => 1230674400, 300 => 1233352800, 301 => 1235772000, 302 => 1238450400, 303 => 1241042400, 304 => 1243720800, 305 => 1246312800, - ]; +]; diff --git a/Examples/example_list.php b/Examples/example_list.php index df599b12..58bcab2f 100755 --- a/Examples/example_list.php +++ b/Examples/example_list.php @@ -1,7 +1,7 @@ Read()) { - if (is_dir($entry) && ($entry != 'assets') && $entry !== '.' && $entry !== '..') { - $examplefolder = dir($entry); + if (\is_dir($entry) && ('assets' !== $entry) && '.' !== $entry && '..' !== $entry) { + $examplefolder = \dir($entry); + while ($file = $examplefolder->Read()) { - if (is_dir($file) || !strstr($file, '.php')) { + if (\is_dir($file) || !\mb_strstr($file, '.php')) { continue; } - if (!strstr($entry, 'csim') && strstr($file, 'x') && !strstr($file, 'show') && !strstr($file, 'csim')) { + + if (!\mb_strstr($entry, 'csim') && \mb_strstr($file, 'x') && !\mb_strstr($file, 'show') && !\mb_strstr($file, 'csim')) { $a[] = $entry . '/' . $file; - } elseif (strstr($entry, 'csim') && !strstr($entry, 'graph')) { + } elseif (\mb_strstr($entry, 'csim') && !\mb_strstr($entry, 'graph')) { $a[] = $entry . '/' . $file; } } } } $d->Close(); - if (count($a) == 0) { - die("PANIC: Apache/PHP does not have enough permission to read the scripts in directory: {$this->iDir}"); + + if (\count($a) === 0) { + exit("PANIC: Apache/PHP does not have enough permission to read the scripts in directory: {$this->iDir}"); } - sort($a); + \sort($a); return $a; } $files = GetFiles(); -echo "window.files='" . json_encode($files) . "';"; +echo "window.files='" . \json_encode($files) . "';"; diff --git a/Examples/examples_axis/axislabelbkgex01.php b/Examples/examples_axis/axislabelbkgex01.php index 2e6ae698..17d46a9a 100755 --- a/Examples/examples_axis/axislabelbkgex01.php +++ b/Examples/examples_axis/axislabelbkgex01.php @@ -1,7 +1,7 @@ SetScale('intlin'); -$graph->SetMargin(30, 15, 40, 30); -$graph->SetMarginColor('white'); -$graph->SetFrame(true, 'blue', 3); +$graph = new Graph\Graph($__width, $__height); $example_title = 'Label background'; -$example_title = $example_title; -$example_title = $example_title; -$graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 12); - -$graph->subtitle->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 10); -$graph->subtitle->SetColor('darkred'); $subtitle_text = 'Label without background'; -$graph->subtitle->Set($subtitle_text); - -$graph->SetAxisLabelBackground(Graph\Configs::getConfig('LABELBKG_NONE'), 'orange', 'red', 'lightblue', 'red'); - -// Use Ariel font -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 9); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 9); -$graph->xgrid->Show(); - -// Create the plot line -$p1 = new Plot\LinePlot($ydata); -$graph->Add($p1); -// Output graph -$graph->Stroke(); +$graph->SetScale('intlin') + ->SetMargin(30, 15, 40, 30) + ->SetMarginColor('white') + ->SetFrame(true, 'blue', 3) + ->SetAxisLabelBackground( + Graph\Configs::getConfig('LABELBKG_NONE'), + 'orange', + 'red', + 'lightblue', + 'red' + ) + ->tap( + fn ($g) => $g->title + ->set($example_title) + ->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 12 + ) + )->tap( + fn ($g) => $g->subtitle + ->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 + ) + ->SetColor('darkred') + ->Set($subtitle_text) + ) + ->tap(fn ($g) => $g->xaxis->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 9 + )) + ->tap(fn ($g) => $g->yaxis->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 9 + )) + ->tap(fn ($g) => $g->xgrid->Show()) + ->Add(new Plot\LinePlot($ydata)) + ->Stroke(); diff --git a/Examples/examples_axis/axislabelbkgex02.php b/Examples/examples_axis/axislabelbkgex02.php index c67c998e..8370a0c6 100644 --- a/Examples/examples_axis/axislabelbkgex02.php +++ b/Examples/examples_axis/axislabelbkgex02.php @@ -1,7 +1,7 @@ SetScale('intlin'); $graph->SetMargin(30, 15, 40, 30); $graph->SetMarginColor('white'); diff --git a/Examples/examples_axis/axislabelbkgex03.php b/Examples/examples_axis/axislabelbkgex03.php index 70e7e55a..50f71b0c 100644 --- a/Examples/examples_axis/axislabelbkgex03.php +++ b/Examples/examples_axis/axislabelbkgex03.php @@ -1,7 +1,7 @@ SetScale('intlin'); $graph->SetMargin(30, 15, 40, 30); $graph->SetMarginColor('white'); diff --git a/Examples/examples_axis/axislabelbkgex04.php b/Examples/examples_axis/axislabelbkgex04.php index a9139637..23cfe9d0 100644 --- a/Examples/examples_axis/axislabelbkgex04.php +++ b/Examples/examples_axis/axislabelbkgex04.php @@ -1,7 +1,7 @@ SetScale('intlin'); $graph->SetMargin(30, 15, 40, 30); $graph->SetMarginColor('white'); diff --git a/Examples/examples_axis/axislabelbkgex05.php b/Examples/examples_axis/axislabelbkgex05.php index fc5106be..3874a47c 100644 --- a/Examples/examples_axis/axislabelbkgex05.php +++ b/Examples/examples_axis/axislabelbkgex05.php @@ -1,7 +1,7 @@ SetScale('intlin'); $graph->SetMargin(30, 15, 40, 30); $graph->SetMarginColor('white'); diff --git a/Examples/examples_axis/axislabelbkgex06.php b/Examples/examples_axis/axislabelbkgex06.php index 58c5dfaf..33b7f18e 100644 --- a/Examples/examples_axis/axislabelbkgex06.php +++ b/Examples/examples_axis/axislabelbkgex06.php @@ -1,7 +1,7 @@ SetScale('intlin'); $graph->SetMargin(30, 15, 40, 30); $graph->SetMarginColor('white'); diff --git a/Examples/examples_axis/axislabelbkgex07.php b/Examples/examples_axis/axislabelbkgex07.php index 52663a3a..5c22f3aa 100644 --- a/Examples/examples_axis/axislabelbkgex07.php +++ b/Examples/examples_axis/axislabelbkgex07.php @@ -1,7 +1,7 @@ SetScale('intlin'); $graph->SetMargin(30, 15, 40, 30); $graph->SetMarginColor('white'); diff --git a/Examples/examples_axis/dupyaxisex1.php b/Examples/examples_axis/dupyaxisex1.php index d3621790..4f69ffc6 100644 --- a/Examples/examples_axis/dupyaxisex1.php +++ b/Examples/examples_axis/dupyaxisex1.php @@ -1,7 +1,7 @@ E(-M_PI, M_PI, 25); +$f = new Util\FuncGenerator('cos($i)', '$i*$i*$i'); +[$xdata, $ydata] = $f->E(-\M_PI, \M_PI, 25); -$__width = 300; +$__width = 300; $__height = 200; -$graph = new Graph\Graph($__width, $__height); +$graph = new Graph\Graph($__width, $__height); $graph->SetScale('linlin'); $graph->SetMargin(50, 50, 20, 30); $graph->SetFrame(false); diff --git a/Examples/examples_axis/inyaxisex1.php b/Examples/examples_axis/inyaxisex1.php index 3b1a12fd..94b84708 100644 --- a/Examples/examples_axis/inyaxisex1.php +++ b/Examples/examples_axis/inyaxisex1.php @@ -1,7 +1,7 @@ SetScale('linlin'); $graph->img->SetMargin(50, 50, 60, 40); $graph->SetMarginColor('darkblue'); diff --git a/Examples/examples_axis/inyaxisex2.php b/Examples/examples_axis/inyaxisex2.php index 4d460048..e15024a6 100644 --- a/Examples/examples_axis/inyaxisex2.php +++ b/Examples/examples_axis/inyaxisex2.php @@ -1,7 +1,7 @@ SetScale('linlin'); $graph->img->SetMargin(50, 50, 60, 40); $graph->SetMarginColor('darkblue'); diff --git a/Examples/examples_axis/inyaxisex3.php b/Examples/examples_axis/inyaxisex3.php index 657bad2b..4e72f693 100644 --- a/Examples/examples_axis/inyaxisex3.php +++ b/Examples/examples_axis/inyaxisex3.php @@ -1,7 +1,7 @@ SetScale('linlin'); $graph->SetY2Scale('lin'); $graph->SetMargin(50, 50, 60, 40); diff --git a/Examples/examples_axis/mulyaxisex1.php b/Examples/examples_axis/mulyaxisex1.php index baf286d4..587b4817 100644 --- a/Examples/examples_axis/mulyaxisex1.php +++ b/Examples/examples_axis/mulyaxisex1.php @@ -1,7 +1,7 @@ SetMargin(40, 150, 40, 30); $graph->SetMarginColor('white'); diff --git a/Examples/examples_axis/topxaxis.php b/Examples/examples_axis/topxaxis.php index 9d12b4fc..299a1269 100644 --- a/Examples/examples_axis/topxaxis.php +++ b/Examples/examples_axis/topxaxis.php @@ -1,7 +1,7 @@ img->SetMargin(40, 40, 40, 20); $graph->SetScale('linlin'); diff --git a/Examples/examples_background/background_type_ex0.php b/Examples/examples_background/background_type_ex0.php index 773854f7..02b140e8 100644 --- a/Examples/examples_background/background_type_ex0.php +++ b/Examples/examples_background/background_type_ex0.php @@ -1,7 +1,7 @@ SetScale('textlin'); $graph->SetMargin(40, 40, 50, 50); @@ -26,11 +26,19 @@ $graph->SetBox(true); // Steup graph titles -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 12); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); $example_title = 'Using background image'; $example_title = $example_title; $graph->title->set($example_title); -$graph->subtitle->SetFont(Graph\Configs::getConfig('FF_COURIER'), Graph\Configs::getConfig('FS_BOLD'), 11); +$graph->subtitle->SetFont( + Graph\Configs::getConfig('FF_COURIER'), + Graph\Configs::getConfig('FS_BOLD'), + 11 +); $subtitle_text = 'BGIMG_COPY'; $graph->subtitle->Set($subtitle_text); $graph->subtitle->SetColor('darkred'); diff --git a/Examples/examples_background/background_type_ex1.php b/Examples/examples_background/background_type_ex1.php index 2b53dcb5..7d4ce928 100644 --- a/Examples/examples_background/background_type_ex1.php +++ b/Examples/examples_background/background_type_ex1.php @@ -1,7 +1,7 @@ SetScale('textlin'); $graph->SetMargin(40, 40, 50, 50); @@ -25,10 +25,18 @@ $graph->SetBox(true); // Steup graph titles -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 12); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); $example_title = 'Using background image'; $graph->title->set($example_title); -$graph->subtitle->SetFont(Graph\Configs::getConfig('FF_COURIER'), Graph\Configs::getConfig('FS_BOLD'), 11); +$graph->subtitle->SetFont( + Graph\Configs::getConfig('FF_COURIER'), + Graph\Configs::getConfig('FS_BOLD'), + 11 +); $subtitle_text = 'BGIMG_CENTER'; $graph->subtitle->Set($subtitle_text); $graph->subtitle->SetColor('darkred'); diff --git a/Examples/examples_background/background_type_ex2.php b/Examples/examples_background/background_type_ex2.php index 9cc79b8d..27ecffc2 100644 --- a/Examples/examples_background/background_type_ex2.php +++ b/Examples/examples_background/background_type_ex2.php @@ -1,7 +1,7 @@ SetScale('textlin'); $graph->SetMargin(40, 40, 50, 50); @@ -25,10 +25,18 @@ $graph->SetBox(true); // Steup graph titles -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 12); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); $example_title = 'Using background image'; $graph->title->set($example_title); -$graph->subtitle->SetFont(Graph\Configs::getConfig('FF_COURIER'), Graph\Configs::getConfig('FS_BOLD'), 11); +$graph->subtitle->SetFont( + Graph\Configs::getConfig('FF_COURIER'), + Graph\Configs::getConfig('FS_BOLD'), + 11 +); $subtitle_text = 'BGIMG_FREE'; $graph->subtitle->Set($subtitle_text); $graph->subtitle->SetColor('darkred'); diff --git a/Examples/examples_background/background_type_ex3.php b/Examples/examples_background/background_type_ex3.php index 67fa04bf..fc4a9b51 100644 --- a/Examples/examples_background/background_type_ex3.php +++ b/Examples/examples_background/background_type_ex3.php @@ -1,7 +1,7 @@ SetScale('textlin'); $graph->SetMargin(40, 40, 50, 50); @@ -25,10 +25,18 @@ $graph->SetBox(true); // Steup graph titles -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 12); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); $example_title = 'Using background image'; $graph->title->set($example_title); -$graph->subtitle->SetFont(Graph\Configs::getConfig('FF_COURIER'), Graph\Configs::getConfig('FS_BOLD'), 11); +$graph->subtitle->SetFont( + Graph\Configs::getConfig('FF_COURIER'), + Graph\Configs::getConfig('FS_BOLD'), + 11 +); $subtitle_text = 'BGIMG_FILLPLOT'; $graph->subtitle->Set($subtitle_text); $graph->subtitle->SetColor('darkred'); diff --git a/Examples/examples_background/background_type_ex4.php b/Examples/examples_background/background_type_ex4.php index d9c49e60..87e7ae8b 100644 --- a/Examples/examples_background/background_type_ex4.php +++ b/Examples/examples_background/background_type_ex4.php @@ -1,7 +1,7 @@ SetScale('textlin'); $graph->SetMargin(40, 40, 50, 50); @@ -25,10 +25,18 @@ $graph->SetBox(true); // Steup graph titles -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 12); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); $example_title = 'Using background image'; $graph->title->set($example_title); -$graph->subtitle->SetFont(Graph\Configs::getConfig('FF_COURIER'), Graph\Configs::getConfig('FS_BOLD'), 11); +$graph->subtitle->SetFont( + Graph\Configs::getConfig('FF_COURIER'), + Graph\Configs::getConfig('FS_BOLD'), + 11 +); $subtitle_text = 'BGIMG_FILLFRAME'; $graph->subtitle->Set($subtitle_text); $graph->subtitle->SetColor('darkred'); diff --git a/Examples/examples_background/backgroundex01.php b/Examples/examples_background/backgroundex01.php index a362d7ea..99152ee6 100644 --- a/Examples/examples_background/backgroundex01.php +++ b/Examples/examples_background/backgroundex01.php @@ -1,7 +1,7 @@ img->SetMargin(40, 180, 40, 40); $graph->SetBackgroundImage(__DIR__ . '/../assets/tiger_bkg.png', Graph\Configs::getConfig('BGIMG_FILLPLOT')); @@ -27,7 +27,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Slightly adjust the legend from it's default position in the // top right corner. @@ -35,7 +38,9 @@ // Create the first line $p1 = new Plot\LinePlot($datay); -$p1->mark->SetType(Graph\Configs::getConfig('MARK_FILLEDCIRCLE')); +$p1->mark->SetType( + Graph\Configs::getConfig('MARK_FILLEDCIRCLE') +); $p1->mark->SetFillColor('red'); $p1->mark->SetWidth(4); $p1->SetColor('blue'); @@ -45,7 +50,9 @@ // ... and the second $p2 = new Plot\LinePlot($data2y); -$p2->mark->SetType(Graph\Configs::getConfig('MARK_STAR')); +$p2->mark->SetType( + Graph\Configs::getConfig('MARK_STAR') +); $p2->mark->SetFillColor('red'); $p2->mark->SetWidth(4); $p2->SetColor('red'); diff --git a/Examples/examples_background/backgroundex02.php b/Examples/examples_background/backgroundex02.php index acf1a68a..53b153f7 100644 --- a/Examples/examples_background/backgroundex02.php +++ b/Examples/examples_background/backgroundex02.php @@ -1,7 +1,7 @@ img->SetMargin(40, 180, 40, 40); $graph->SetBackgroundImage(__DIR__ . '/../assets/tiger_bkg.png', Graph\Configs::getConfig('BGIMG_FILLFRAME')); @@ -27,7 +27,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Slightly adjust the legend from it's default position in the // top right corner. @@ -35,7 +38,9 @@ // Create the first line $p1 = new Plot\LinePlot($datay); -$p1->mark->SetType(Graph\Configs::getConfig('MARK_FILLEDCIRCLE')); +$p1->mark->SetType( + Graph\Configs::getConfig('MARK_FILLEDCIRCLE') +); $p1->mark->SetFillColor('red'); $p1->mark->SetWidth(4); $p1->SetColor('blue'); @@ -45,7 +50,9 @@ // ... and the second $p2 = new Plot\LinePlot($data2y); -$p2->mark->SetType(Graph\Configs::getConfig('MARK_STAR')); +$p2->mark->SetType( + Graph\Configs::getConfig('MARK_STAR') +); $p2->mark->SetFillColor('red'); $p2->mark->SetWidth(4); $p2->SetColor('red'); diff --git a/Examples/examples_background/backgroundex03.php b/Examples/examples_background/backgroundex03.php index bd14c316..f26adc66 100644 --- a/Examples/examples_background/backgroundex03.php +++ b/Examples/examples_background/backgroundex03.php @@ -1,7 +1,7 @@ img->SetMargin(40, 180, 40, 40); $graph->SetBackgroundImage(__DIR__ . '/../assets/tiger_bkg.png', Graph\Configs::getConfig('BGIMG_COPY')); @@ -27,7 +27,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Slightly adjust the legend from it's default position in the // top right corner. @@ -35,7 +38,9 @@ // Create the first line $p1 = new Plot\LinePlot($datay); -$p1->mark->SetType(Graph\Configs::getConfig('MARK_FILLEDCIRCLE')); +$p1->mark->SetType( + Graph\Configs::getConfig('MARK_FILLEDCIRCLE') +); $p1->mark->SetFillColor('red'); $p1->mark->SetWidth(4); $p1->SetColor('blue'); @@ -45,7 +50,9 @@ // ... and the second $p2 = new Plot\LinePlot($data2y); -$p2->mark->SetType(Graph\Configs::getConfig('MARK_STAR')); +$p2->mark->SetType( + Graph\Configs::getConfig('MARK_STAR') +); $p2->mark->SetFillColor('red'); $p2->mark->SetWidth(4); $p2->SetColor('red'); diff --git a/Examples/examples_bar/accbarex1.php b/Examples/examples_bar/accbarex1.php index c210b447..043cd865 100644 --- a/Examples/examples_bar/accbarex1.php +++ b/Examples/examples_bar/accbarex1.php @@ -1,7 +1,7 @@ SetScale('textlin'); $graph->SetShadow(); @@ -39,9 +39,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/accbarframeex01.php b/Examples/examples_bar/accbarframeex01.php index 062b66a2..62e4faa2 100644 --- a/Examples/examples_bar/accbarframeex01.php +++ b/Examples/examples_bar/accbarframeex01.php @@ -1,7 +1,7 @@ SetScale('textlin'); $graph->SetMarginColor('white'); diff --git a/Examples/examples_bar/accbarframeex02.php b/Examples/examples_bar/accbarframeex02.php index 5ba3c280..fe563e2d 100644 --- a/Examples/examples_bar/accbarframeex02.php +++ b/Examples/examples_bar/accbarframeex02.php @@ -1,7 +1,7 @@ SetScale('textlin'); $graph->SetMarginColor('white'); diff --git a/Examples/examples_bar/accbarframeex03.php b/Examples/examples_bar/accbarframeex03.php index 7c8f1804..5b7280f0 100644 --- a/Examples/examples_bar/accbarframeex03.php +++ b/Examples/examples_bar/accbarframeex03.php @@ -1,7 +1,7 @@ SetScale('textlin'); $graph->SetMarginColor('white'); diff --git a/Examples/examples_bar/alphabar.php b/Examples/examples_bar/alphabar.php index fdd765f1..5854bdf1 100644 --- a/Examples/examples_bar/alphabar.php +++ b/Examples/examples_bar/alphabar.php @@ -1,7 +1,7 @@ SetScale('textlin'); $graph->img->SetMargin(40, 80, 30, 40); @@ -36,13 +36,22 @@ // Set axis titles and fonts $graph->xaxis->title->Set('Year 2002'); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->title->SetColor('white'); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->SetColor('white'); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->yaxis->SetColor('white'); //$graph->ygrid->Show(false); @@ -53,7 +62,11 @@ $graph->title->set($example_title); // Some extra margin (from the top) $graph->title->SetMargin(3); -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 12); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 12 +); // Create the three var series we will combine $bplot1 = new Plot\BarPlot($datay1); diff --git a/Examples/examples_bar/bar2scalesex1.php b/Examples/examples_bar/bar2scalesex1.php index 017818aa..65e106e1 100644 --- a/Examples/examples_bar/bar2scalesex1.php +++ b/Examples/examples_bar/bar2scalesex1.php @@ -1,21 +1,21 @@ title->set($example_title); diff --git a/Examples/examples_bar/barformatcallbackex1.php b/Examples/examples_bar/barformatcallbackex1.php index 838e5a5c..88c8ad34 100644 --- a/Examples/examples_bar/barformatcallbackex1.php +++ b/Examples/examples_bar/barformatcallbackex1.php @@ -1,7 +1,7 @@ SetScale('textlin'); // Create a bar plots diff --git a/Examples/examples_bar/bargradex1.php b/Examples/examples_bar/bargradex1.php index 1eb0e4e2..c73f43d2 100644 --- a/Examples/examples_bar/bargradex1.php +++ b/Examples/examples_bar/bargradex1.php @@ -1,11 +1,12 @@ img->SetMargin(60, 20, 35, 75); $graph->SetScale('textlin'); $graph->SetMarginColor('lightblue:1.1'); @@ -24,12 +25,24 @@ // Set up the title for the graph$example_title='Bar gradient with left reflection'; $graph->title->set($example_title); $graph->title->SetMargin(8); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_BOLD'), 12); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 10); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 10); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 +); // Show 0 label on Y-axis (default is not to show) $graph->yscale->ticks->SupressZeroLabel(false); diff --git a/Examples/examples_bar/bargradex2.php b/Examples/examples_bar/bargradex2.php index 4c099d69..1f9fe4f4 100644 --- a/Examples/examples_bar/bargradex2.php +++ b/Examples/examples_bar/bargradex2.php @@ -1,12 +1,13 @@ img->SetMargin(60, 20, 30, 50); $graph->SetScale('textlin'); $graph->SetMarginColor('silver'); $graph->SetShadow(); // Set up the title for the graph$example_title='Example negative bars'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 18); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 18 +); $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 12); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 12 +); $graph->xaxis->SetColor('black', 'red'); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 11); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 11 +); // Show 0 label on Y-axis (default is not to show) $graph->yscale->ticks->SupressZeroLabel(false); diff --git a/Examples/examples_bar/bargradex3.php b/Examples/examples_bar/bargradex3.php index bb85a34d..07045bf2 100644 --- a/Examples/examples_bar/bargradex3.php +++ b/Examples/examples_bar/bargradex3.php @@ -1,12 +1,13 @@ img->SetMargin(60, 20, 30, 50); $graph->SetScale('textlin'); $graph->SetMarginColor('silver'); $graph->SetShadow(); // Set up the title for the graph$example_title='Example negative bars'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 16); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 16 +); $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 10); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 10); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 +); // Show 0 label on Y-axis (default is not to show) $graph->yscale->ticks->SupressZeroLabel(false); diff --git a/Examples/examples_bar/bargradex4.php b/Examples/examples_bar/bargradex4.php index 589008b0..8d26c3bc 100644 --- a/Examples/examples_bar/bargradex4.php +++ b/Examples/examples_bar/bargradex4.php @@ -1,12 +1,13 @@ img->SetMargin(60, 30, 30, 40); $graph->SetScale('textlin'); $graph->SetMarginColor('teal'); @@ -24,20 +25,36 @@ // Set up the title for the graph$example_title='Bargraph with small variations'; $graph->title->set($example_title); $graph->title->SetColor('white'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_BOLD'), 12); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); // Setup color for axis and labels $graph->xaxis->SetColor('black', 'white'); $graph->yaxis->SetColor('black', 'white'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 10); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 10); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 +); // Setup X-axis title (color & font) $graph->xaxis->title->Set('X-axis'); $graph->xaxis->title->SetColor('white'); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_BOLD'), 10); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_BOLD'), + 10 +); // Create the bar pot $bplot = new Plot\BarPlot($datay); diff --git a/Examples/examples_bar/bargradex5.php b/Examples/examples_bar/bargradex5.php index 6d6ff85e..3d034766 100644 --- a/Examples/examples_bar/bargradex5.php +++ b/Examples/examples_bar/bargradex5.php @@ -1,12 +1,13 @@ img->SetMargin(60, 30, 30, 40); $graph->SetScale('textlin'); $graph->SetMarginColor('teal'); @@ -38,20 +39,36 @@ // Set up the title for the graph$example_title=Bargraph which doesn't start from y=0; $graph->title->set($example_title); $graph->title->SetColor('yellow'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_BOLD'), 12); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); // Setup color for axis and labels $graph->xaxis->SetColor('black', 'white'); $graph->yaxis->SetColor('black', 'white'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 10); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 10); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 +); // Setup X-axis title (color & font) $graph->xaxis->title->Set('X-axis'); $graph->xaxis->title->SetColor('white'); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_BOLD'), 10); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_BOLD'), + 10 +); // Finally send the graph to the browser $graph->Stroke(); diff --git a/Examples/examples_bar/bargradex6.php b/Examples/examples_bar/bargradex6.php index 649436aa..892896d4 100644 --- a/Examples/examples_bar/bargradex6.php +++ b/Examples/examples_bar/bargradex6.php @@ -1,12 +1,13 @@ img->SetMargin(60, 150, 30, 50); $graph->SetScale('textlin'); $graph->SetMarginColor('silver'); $graph->SetShadow(); // Set up the title for the graph$example_title='Example negative bars'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 16); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 16 +); $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 10); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 10); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 10 +); // Show 0 label on Y-axis (default is not to show) $graph->yscale->ticks->SupressZeroLabel(false); diff --git a/Examples/examples_bar/bargradsmallex1.php b/Examples/examples_bar/bargradsmallex1.php index 844f4b15..22241b75 100644 --- a/Examples/examples_bar/bargradsmallex1.php +++ b/Examples/examples_bar/bargradsmallex1.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->img->SetMargin(25, 15, 25, 25); $example_title = 'GRAD_MIDVER'; @@ -22,8 +23,12 @@ $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); // Create the bar pot $bplot = new Plot\BarPlot($datay); diff --git a/Examples/examples_bar/bargradsmallex2.php b/Examples/examples_bar/bargradsmallex2.php index 6a4d6ec6..eded6f8a 100644 --- a/Examples/examples_bar/bargradsmallex2.php +++ b/Examples/examples_bar/bargradsmallex2.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->img->SetMargin(25, 15, 25, 25); $example_title = 'GRAD_MIDHOR'; @@ -22,8 +23,12 @@ $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); // Create the bar pot $bplot = new Plot\BarPlot($datay); diff --git a/Examples/examples_bar/bargradsmallex3.php b/Examples/examples_bar/bargradsmallex3.php index 8fff07b0..2ae120c2 100644 --- a/Examples/examples_bar/bargradsmallex3.php +++ b/Examples/examples_bar/bargradsmallex3.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->img->SetMargin(25, 15, 25, 25); $example_title = 'GRAD_HOR'; @@ -22,8 +23,12 @@ $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); // Create the bar pot $bplot = new Plot\BarPlot($datay); diff --git a/Examples/examples_bar/bargradsmallex4.php b/Examples/examples_bar/bargradsmallex4.php index cdde087a..75579916 100644 --- a/Examples/examples_bar/bargradsmallex4.php +++ b/Examples/examples_bar/bargradsmallex4.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->img->SetMargin(25, 15, 25, 25); $example_title = 'GRAD_VER'; @@ -22,8 +23,12 @@ $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); // Create the bar pot $bplot = new Plot\BarPlot($datay); diff --git a/Examples/examples_bar/bargradsmallex5.php b/Examples/examples_bar/bargradsmallex5.php index 273d664d..0d0677ef 100644 --- a/Examples/examples_bar/bargradsmallex5.php +++ b/Examples/examples_bar/bargradsmallex5.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->img->SetMargin(25, 15, 25, 25); $example_title = 'GRAD_WIDE_MIDVER'; @@ -22,8 +23,12 @@ $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); // Create the bar pot $bplot = new Plot\BarPlot($datay); diff --git a/Examples/examples_bar/bargradsmallex6.php b/Examples/examples_bar/bargradsmallex6.php index 017b404f..99141e66 100644 --- a/Examples/examples_bar/bargradsmallex6.php +++ b/Examples/examples_bar/bargradsmallex6.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->img->SetMargin(25, 15, 25, 25); $example_title = 'GRAD_WIDE_MIDHOR'; @@ -22,8 +23,12 @@ $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); // Create the bar pot $bplot = new Plot\BarPlot($datay); diff --git a/Examples/examples_bar/bargradsmallex7.php b/Examples/examples_bar/bargradsmallex7.php index 67b23511..b83527f3 100644 --- a/Examples/examples_bar/bargradsmallex7.php +++ b/Examples/examples_bar/bargradsmallex7.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->img->SetMargin(25, 15, 25, 25); $example_title = 'GRAD_CENTER'; @@ -22,8 +23,12 @@ $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); // Create the bar pot $bplot = new Plot\BarPlot($datay); diff --git a/Examples/examples_bar/bargradsmallex8.php b/Examples/examples_bar/bargradsmallex8.php index 02dfb148..283ef0ad 100644 --- a/Examples/examples_bar/bargradsmallex8.php +++ b/Examples/examples_bar/bargradsmallex8.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->img->SetMargin(25, 15, 25, 25); $example_title = 'GRAD_RAISED_PANEL'; @@ -22,8 +23,12 @@ $graph->title->SetColor('darkred'); // Setup font for axis -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); // Create the bar pot $bplot = new Plot\BarPlot($datay); diff --git a/Examples/examples_bar/barimg1.php b/Examples/examples_bar/barimg1.php index ca276973..c9400429 100644 --- a/Examples/examples_bar/barimg1.php +++ b/Examples/examples_bar/barimg1.php @@ -1,22 +1,27 @@ SetScale('textlin'); $example_title = 'Images on top of bars'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 13); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 13 +); $graph->SetTitleBackground('lightblue:1.1', Graph\Configs::getConfig('TITLEBKG_STYLE1'), Graph\Configs::getConfig('TITLEBKG_FRAME_BEVEL')); @@ -27,7 +32,10 @@ $lplot = new Plot\LinePlot($datay); $lplot->SetColor('white@1'); $lplot->SetBarCenter(); -$lplot->mark->SetType(Graph\Configs::getConfig('MARK_IMG_LBALL'), 'red'); +$lplot->mark->SetType( + Graph\Configs::getConfig('MARK_IMG_LBALL'), + 'red' +); $graph->Add($bplot); $graph->Add($lplot); diff --git a/Examples/examples_bar/barint1.php b/Examples/examples_bar/barint1.php index 0b84fc41..b6ec35bd 100644 --- a/Examples/examples_bar/barint1.php +++ b/Examples/examples_bar/barint1.php @@ -1,11 +1,12 @@ img->SetMargin(40, 30, 30, 40); $graph->SetScale('textint'); $graph->SetShadow(); @@ -28,12 +29,20 @@ // Setup X-axis labels $a = $graph->gDateLocale->GetShortMonth(); $graph->xaxis->SetTickLabels($a); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT2')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT2') +); // Setup graph title ands fonts$example_title='Example of integer Y-scale'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->title->Set('Year 2002'); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); // Create a bar pot $bplot = new Plot\BarPlot($datay); @@ -44,7 +53,10 @@ // Setup the values that are displayed on top of each bar $bplot->value->Show(); // Must use TTF fonts if we want text at an arbitrary angle -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD')); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD') +); $bplot->value->SetAngle(45); // Black color for positive values and darkred for negative values $bplot->value->SetColor('black', 'darkred'); diff --git a/Examples/examples_bar/barint2.php b/Examples/examples_bar/barint2.php index edd5abbd..def64c38 100644 --- a/Examples/examples_bar/barint2.php +++ b/Examples/examples_bar/barint2.php @@ -1,10 +1,11 @@ img->SetMargin(40, 30, 40, 40); $graph->SetScale('textint'); $graph->SetFrame(true, 'blue', 1); @@ -28,7 +29,9 @@ // Setup X-axis labels $a = $graph->gDateLocale->GetShortMonth(); $graph->xaxis->SetTickLabels($a); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); $graph->xaxis->SetColor('darkblue', 'black'); // Stup hidden y-axis by given it the same color @@ -40,9 +43,15 @@ $subtitle_text = '(With hidden y-axis)'; $graph->subtitle->Set($subtitle_text); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->title->Set('Year 2002'); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); // Create a bar pot $bplot = new Plot\BarPlot($datay); @@ -54,7 +63,11 @@ // Setup the values that are displayed on top of each bar $bplot->value->Show(); // Must use TTF fonts if we want text at an arbitrary angle -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 8); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 8 +); $bplot->value->SetFormat('$%d'); // Black color for positive values and darkred for negative values $bplot->value->SetColor('black', 'darkred'); diff --git a/Examples/examples_bar/barlinealphaex1.php b/Examples/examples_bar/barlinealphaex1.php index f2e0b23e..da474882 100644 --- a/Examples/examples_bar/barlinealphaex1.php +++ b/Examples/examples_bar/barlinealphaex1.php @@ -1,21 +1,22 @@ SetScale('textlin'); $graph->SetMarginColor('white'); @@ -34,7 +35,11 @@ // Setup the tab title $graph->tabtitle->Set('Year 2003'); -$graph->tabtitle->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 10); +$graph->tabtitle->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 10 +); // Setup the X and Y grid $graph->ygrid->SetFill(true, '#DDDDDD@0.5', '#BBBBBB@0.5'); @@ -46,7 +51,11 @@ // Setup month as labels on the X-axis $graph->xaxis->SetTickLabels($months); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 8); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 8 +); $graph->xaxis->SetLabelAngle(45); // Create a bar pot @@ -69,7 +78,9 @@ $lplot->SetColor('navy@0.7'); $lplot->SetBarCenter(); -$lplot->mark->SetType(Graph\Configs::getConfig('MARK_SQUARE')); +$lplot->mark->SetType( + Graph\Configs::getConfig('MARK_SQUARE') +); $lplot->mark->SetColor('blue@0.5'); $lplot->mark->SetFillColor('lightblue'); $lplot->mark->SetSize(6); diff --git a/Examples/examples_bar/barlinefreqex1.php b/Examples/examples_bar/barlinefreqex1.php index b6c630ee..e135b824 100644 --- a/Examples/examples_bar/barlinefreqex1.php +++ b/Examples/examples_bar/barlinefreqex1.php @@ -1,13 +1,14 @@ SetScale('textlin'); @@ -48,15 +50,30 @@ function accfreq($data) $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Turn the tickmarks -$graph->xaxis->SetTickSide(Graph\Configs::getConfig('SIDE_DOWN')); -$graph->yaxis->SetTickSide(Graph\Configs::getConfig('SIDE_LEFT')); - -$graph->y2axis->SetTickSide(Graph\Configs::getConfig('SIDE_RIGHT')); +$graph->xaxis->SetTickSide( + Graph\Configs::getConfig('SIDE_DOWN') +); +$graph->yaxis->SetTickSide( + Graph\Configs::getConfig('SIDE_LEFT') +); + +$graph->y2axis->SetTickSide( + Graph\Configs::getConfig('SIDE_RIGHT') +); $graph->y2axis->SetColor('black', 'blue'); $graph->y2axis->SetLabelFormat('%3d.0%%'); @@ -78,7 +95,11 @@ function accfreq($data) $bplot->SetFillColor('orange@0.2'); $bplot->SetValuePos('center'); $bplot->value->SetFormat('%d'); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 9); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 9 +); $bplot->value->Show(); // Add it to the graph diff --git a/Examples/examples_bar/barpatternex1.php b/Examples/examples_bar/barpatternex1.php index fb376f06..9ac9a803 100644 --- a/Examples/examples_bar/barpatternex1.php +++ b/Examples/examples_bar/barpatternex1.php @@ -1,19 +1,20 @@ SetScale('textlin'); @@ -21,17 +22,28 @@ $graph->SetBox(); $example_title = 'Bar Pattern'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 20); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 20 +); $graph->SetTitleBackground('lightblue:1.3', Graph\Configs::getConfig('TITLEBKG_STYLE2'), Graph\Configs::getConfig('TITLEBKG_FRAME_BEVEL')); -$graph->SetTitleBackgroundFillStyle(Graph\Configs::getConfig('TITLEBKG_FILLSTYLE_HSTRIPED'), 'lightblue', 'blue'); +$graph->SetTitleBackgroundFillStyle( + Graph\Configs::getConfig('TITLEBKG_FILLSTYLE_HSTRIPED'), + 'lightblue', + 'blue' +); // Create a bar pot $bplot = new Plot\BarPlot($datay); $bplot->SetFillColor('darkorange'); $bplot->SetWidth(0.6); -$bplot->SetPattern(Graph\Configs::getConfig('PATTERN_CROSS1'), 'navy'); +$bplot->SetPattern( + Graph\Configs::getConfig('PATTERN_CROSS1'), + 'navy' +); $graph->Add($bplot); diff --git a/Examples/examples_bar/barscalecallback1.php b/Examples/examples_bar/barscalecallback1.php index 44da5cff..c5dd200d 100644 --- a/Examples/examples_bar/barscalecallback1.php +++ b/Examples/examples_bar/barscalecallback1.php @@ -1,31 +1,32 @@ img->SetMargin(80, 30, 30, 40); $graph->SetScale('textint'); $graph->SetShadow(); @@ -42,12 +43,20 @@ function separator1000_usd($aVal) // Setup X-axis labels $a = $graph->gDateLocale->GetShortMonth(); $graph->xaxis->SetTickLabels($a); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT2')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT2') +); // Setup graph title ands fonts$example_title='Example of Y-scale callback formatting'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->title->Set('Year 2002'); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); // Create a bar pot $bplot = new Plot\BarPlot($datay); @@ -59,7 +68,10 @@ function separator1000_usd($aVal) $bplot->value->Show(); // Must use TTF fonts if we want text at an arbitrary angle -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD')); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD') +); $bplot->value->SetAngle(45); $bplot->value->SetFormatCallback('separator1000_usd'); diff --git a/Examples/examples_bar/bartut2.php b/Examples/examples_bar/bartut2.php index 33d5bc63..591dc423 100644 --- a/Examples/examples_bar/bartut2.php +++ b/Examples/examples_bar/bartut2.php @@ -1,22 +1,23 @@ SetShadow(); // Some data $databary = [12, 7, 16, 6, 7, 14, 9, 3]; -$months = $graph->gDateLocale->GetShortMonth(); +$months = $graph->gDateLocale->GetShortMonth(); // Use a text X-scale $graph->SetScale('textlin'); @@ -29,7 +30,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Create the bar plot $b1 = new Plot\BarPlot($databary); diff --git a/Examples/examples_bar/bartut3.php b/Examples/examples_bar/bartut3.php index a80ab885..c91cf6b5 100644 --- a/Examples/examples_bar/bartut3.php +++ b/Examples/examples_bar/bartut3.php @@ -1,17 +1,18 @@ SetShadow(); $databary = []; @@ -19,9 +20,10 @@ // Some data $months = $graph->gDateLocale->GetShortMonth(); -srand((float) microtime() * 1000000); -for ($i = 0; $i < 25; ++$i) { - $databary[] = rand(1, 50); +\mt_srand((float) \microtime() * 1000000); + +for ($i = 0; 25 > $i; ++$i) { + $databary[] = \mt_rand(1, 50); $databarx[] = $months[$i % 12]; } @@ -36,7 +38,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Create the bar plot $b1 = new Plot\BarPlot($databary); diff --git a/Examples/examples_bar/bartut4.php b/Examples/examples_bar/bartut4.php index 2e4f240a..3309d875 100644 --- a/Examples/examples_bar/bartut4.php +++ b/Examples/examples_bar/bartut4.php @@ -1,17 +1,18 @@ SetShadow(); // Some data @@ -20,9 +21,10 @@ // Some data $months = $graph->gDateLocale->GetShortMonth(); -srand((float) microtime() * 1000000); -for ($i = 0; $i < 25; ++$i) { - $databary[] = rand(1, 50); +\mt_srand((float) \microtime() * 1000000); + +for ($i = 0; 25 > $i; ++$i) { + $databary[] = \mt_rand(1, 50); $databarx[] = $months[$i % 12]; } @@ -31,7 +33,10 @@ // Specify X-labels //$databarx = array('tXi','','','xxx','','','iXii','','','OOO','','','tOO'); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_NORMAL')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_NORMAL') +); $graph->xaxis->SetTickLabels($databarx); $graph->xaxis->SetTextLabelInterval(3); @@ -40,7 +45,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Create the bar plot $b1 = new Plot\BarPlot($databary); diff --git a/Examples/examples_bar/bartutex1.php b/Examples/examples_bar/bartutex1.php index 6e442f8d..6fd47420 100644 --- a/Examples/examples_bar/bartutex1.php +++ b/Examples/examples_bar/bartutex1.php @@ -1,10 +1,11 @@ SetShadow(); // Use a text X-scale @@ -25,7 +26,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Create the bar plot $b1 = new Plot\BarPlot($databary); diff --git a/Examples/examples_bar/bartutex12.php b/Examples/examples_bar/bartutex12.php index 9959ced5..3eac3c37 100644 --- a/Examples/examples_bar/bartutex12.php +++ b/Examples/examples_bar/bartutex12.php @@ -1,7 +1,7 @@ $i) { + $databary[] = \abs(25 * \sin($i) + 5); } else { $databary[] = 0; } } // new Graph\Graph with a background image and drop shadow -$__width = 450; +$__width = 450; $__height = 300; -$graph = new Graph\Graph($__width, $__height); +$graph = new Graph\Graph($__width, $__height); $graph->SetBackgroundImage(__DIR__ . '/../assets/tiger_bkg.png', Graph\Configs::getConfig('BGIMG_FILLFRAME')); $graph->SetShadow(); @@ -52,7 +56,10 @@ $graph->subtitle->Set("100 data points, X-Scale: 'text'"); // Use built in font (don't need TTF support) -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Make the margin around the plot a little bit bigger then default $graph->img->SetMargin(40, 140, 40, 80); diff --git a/Examples/examples_bar/example16.2.php b/Examples/examples_bar/example16.2.php index 2f0dd9a2..3298c823 100644 --- a/Examples/examples_bar/example16.2.php +++ b/Examples/examples_bar/example16.2.php @@ -1,21 +1,22 @@ SetScale('textlin'); $graph->img->SetMargin(40, 130, 20, 40); @@ -40,9 +41,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); //$graph->xaxis->SetTickLabels($datax); //$graph->xaxis->SetTextTickInterval(2); diff --git a/Examples/examples_bar/example16.3.php b/Examples/examples_bar/example16.3.php index b01935d9..f7b35dc4 100644 --- a/Examples/examples_bar/example16.3.php +++ b/Examples/examples_bar/example16.3.php @@ -1,21 +1,22 @@ SetScale('textlin'); $graph->img->SetMargin(40, 130, 20, 40); @@ -40,9 +41,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->SetTickLabels($datax); //$graph->xaxis->SetTextTickInterval(2); diff --git a/Examples/examples_bar/example16.4.php b/Examples/examples_bar/example16.4.php index 228c5a19..0760d15e 100644 --- a/Examples/examples_bar/example16.4.php +++ b/Examples/examples_bar/example16.4.php @@ -1,10 +1,11 @@ SetScale('intlin'); $graph->img->SetMargin(40, 130, 20, 40); @@ -42,9 +43,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); $datax = $graph->gDateLocale->GetShortMonth(); $graph->xaxis->SetTickLabels($datax); diff --git a/Examples/examples_bar/example16.5.php b/Examples/examples_bar/example16.5.php index 95d24c0b..b57c8116 100644 --- a/Examples/examples_bar/example16.5.php +++ b/Examples/examples_bar/example16.5.php @@ -1,22 +1,23 @@ img->SetMargin(40, 70, 20, 40); $graph->SetScale('textlin'); $graph->SetShadow(); @@ -27,7 +28,10 @@ $t1 = new Text\Text('This is a text'); $t1->SetPos(0.5, 0.5); $t1->SetOrientation('h'); -$t1->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$t1->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); $t1->SetBox('white', 'black', 'gray'); $t1->SetColor('black'); $graph->AddText($t1); @@ -51,9 +55,18 @@ $graph->xaxis->title->Set('Month'); $graph->yaxis->title->Set('x10,000 US$'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->SetTickLabels($datax); //$graph->xaxis->SetTextTickInterval(2); diff --git a/Examples/examples_bar/example18.php b/Examples/examples_bar/example18.php index 81e0629e..141ff7f4 100644 --- a/Examples/examples_bar/example18.php +++ b/Examples/examples_bar/example18.php @@ -1,19 +1,20 @@ SetScale('textlin'); // Add a drop shadow @@ -30,9 +31,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example19.1.php b/Examples/examples_bar/example19.1.php index bdfe1e52..1abf07f3 100644 --- a/Examples/examples_bar/example19.1.php +++ b/Examples/examples_bar/example19.1.php @@ -1,19 +1,20 @@ SetScale('intlin'); // Add a drop shadow @@ -33,9 +34,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example19.php b/Examples/examples_bar/example19.php index 41147a8b..3cd3051b 100644 --- a/Examples/examples_bar/example19.php +++ b/Examples/examples_bar/example19.php @@ -1,19 +1,20 @@ SetScale('textlin'); // Add a drop shadow @@ -33,9 +34,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example20.1.php b/Examples/examples_bar/example20.1.php index 5e793864..34f4f535 100644 --- a/Examples/examples_bar/example20.1.php +++ b/Examples/examples_bar/example20.1.php @@ -1,19 +1,20 @@ SetScale('textlin'); // Add a drop shadow @@ -34,9 +35,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example20.2.php b/Examples/examples_bar/example20.2.php index 460d2ba7..ae71fbd0 100644 --- a/Examples/examples_bar/example20.2.php +++ b/Examples/examples_bar/example20.2.php @@ -1,19 +1,20 @@ SetScale('textlin'); $graph->yaxis->scale->SetGrace(20); @@ -35,9 +36,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example20.3.php b/Examples/examples_bar/example20.3.php index 3fd479fc..9bb417b2 100644 --- a/Examples/examples_bar/example20.3.php +++ b/Examples/examples_bar/example20.3.php @@ -1,19 +1,20 @@ SetScale('textlin'); $graph->yaxis->scale->SetGrace(20); @@ -29,7 +30,11 @@ // Adjust fill color $bplot->SetFillColor('orange'); $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 10); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 10 +); $bplot->value->SetAngle(45); $bplot->value->SetFormat('%0.1f'); $graph->Add($bplot); @@ -38,9 +43,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example20.4.php b/Examples/examples_bar/example20.4.php index 4c2ed6c4..efd4baa3 100644 --- a/Examples/examples_bar/example20.4.php +++ b/Examples/examples_bar/example20.4.php @@ -1,19 +1,20 @@ SetScale('textlin'); $graph->yaxis->scale->SetGrace(20); @@ -30,7 +31,11 @@ $bplot->SetFillColor('orange'); $bplot->SetShadow(); $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 10); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 10 +); $bplot->value->SetAngle(45); $bplot->value->SetFormat('%0.1f'); $graph->Add($bplot); @@ -39,9 +44,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example20.5.php b/Examples/examples_bar/example20.5.php index 242b3a3e..60c51195 100644 --- a/Examples/examples_bar/example20.5.php +++ b/Examples/examples_bar/example20.5.php @@ -1,19 +1,20 @@ SetScale('textlin'); // Add a drop shadow @@ -31,7 +32,10 @@ // Setup values $bplot->value->Show(); $bplot->value->SetFormat('%d'); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Center the values in the bar $bplot->SetValuePos('center'); @@ -45,9 +49,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example20.php b/Examples/examples_bar/example20.php index 59ae6352..bdcfce83 100644 --- a/Examples/examples_bar/example20.php +++ b/Examples/examples_bar/example20.php @@ -1,19 +1,20 @@ SetScale('textlin'); // Add a drop shadow @@ -34,9 +35,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example21.php b/Examples/examples_bar/example21.php index f592b84a..e1cf16df 100644 --- a/Examples/examples_bar/example21.php +++ b/Examples/examples_bar/example21.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->SetShadow(); @@ -36,9 +37,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example22.php b/Examples/examples_bar/example22.php index 02fcf748..8581ce8c 100644 --- a/Examples/examples_bar/example22.php +++ b/Examples/examples_bar/example22.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->SetShadow(); @@ -37,9 +38,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example23.php b/Examples/examples_bar/example23.php index 2189f4a7..6912b1d4 100644 --- a/Examples/examples_bar/example23.php +++ b/Examples/examples_bar/example23.php @@ -1,22 +1,26 @@ SetScale('textlin'); $graph->SetShadow(); @@ -38,9 +42,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example24.php b/Examples/examples_bar/example24.php index c986035b..d709876a 100644 --- a/Examples/examples_bar/example24.php +++ b/Examples/examples_bar/example24.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->SetShadow(); @@ -45,9 +46,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example25.1.php b/Examples/examples_bar/example25.1.php index 261c1805..663f70c0 100644 --- a/Examples/examples_bar/example25.1.php +++ b/Examples/examples_bar/example25.1.php @@ -1,10 +1,11 @@ SetScale('textlin'); // Add a drop shadow @@ -31,7 +32,10 @@ $txt = new Text\Text('This is a text'); $txt->SetPos(10, 20); $txt->SetColor('darkred'); -$txt->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$txt->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $txt->SetBox('yellow', 'navy', 'gray@0.5'); $graph->AddText($txt); @@ -39,9 +43,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example25.2.php b/Examples/examples_bar/example25.2.php index 30d58a9b..3181f01b 100644 --- a/Examples/examples_bar/example25.2.php +++ b/Examples/examples_bar/example25.2.php @@ -1,10 +1,11 @@ SetScale('textlin'); // Add a drop shadow @@ -30,7 +31,10 @@ // Create and add a new text $txt = new Text\Text("This is a text\nwith many\nand even\nmore\nlines of text"); $txt->SetPos(0.5, 0.5, 'center', 'center'); -$txt->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$txt->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $txt->ParagraphAlign('center'); $txt->SetBox('yellow', 'navy', 'gray'); $txt->SetColor('red'); @@ -40,9 +44,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/example25.php b/Examples/examples_bar/example25.php index 3b1f0dee..51a11b45 100644 --- a/Examples/examples_bar/example25.php +++ b/Examples/examples_bar/example25.php @@ -1,10 +1,11 @@ SetScale('textlin'); // Add a drop shadow @@ -31,16 +32,28 @@ $txt = new Text\Text('This is a text'); $txt->SetPos(0, 20); $txt->SetColor('darkred'); -$txt->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$txt->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->AddText($txt); // Setup the titles$example_title='A simple bar graph'; $graph->title->set($example_title); $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Display the graph $graph->Stroke(); diff --git a/Examples/examples_bar/groupbar1.php b/Examples/examples_bar/groupbar1.php index faa1cde5..da50b92b 100644 --- a/Examples/examples_bar/groupbar1.php +++ b/Examples/examples_bar/groupbar1.php @@ -1,11 +1,12 @@ SetScale('textlin'); $graph->SetShadow(); $graph->img->SetMargin(40, 30, 40, 40); $graph->xaxis->SetTickLabels($graph->gDateLocale->GetShortMonth()); $graph->xaxis->title->Set('Year 2002'); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); $example_title = 'Group bar plot'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); $bplot1 = new Plot\BarPlot($datay1); $bplot2 = new Plot\BarPlot($datay2); diff --git a/Examples/examples_bar/horizbarex4.php b/Examples/examples_bar/horizbarex4.php index cefad2c6..6f6b9053 100644 --- a/Examples/examples_bar/horizbarex4.php +++ b/Examples/examples_bar/horizbarex4.php @@ -1,7 +1,7 @@ SetScale('textlin'); -$top = 60; +$top = 60; $bottom = 30; -$left = 80; -$right = 30; +$left = 80; +$right = 30; $graph->Set90AndMargin($left, $right, $top, $bottom); // Nice shadow diff --git a/Examples/examples_bar/manual_textscale_ex2.php b/Examples/examples_bar/manual_textscale_ex2.php index d71589e0..9725a79c 100644 --- a/Examples/examples_bar/manual_textscale_ex2.php +++ b/Examples/examples_bar/manual_textscale_ex2.php @@ -1,23 +1,25 @@ SetShadow(); // Some data $databary = []; -for ($i = 0; $i < 12; ++$i) { - $databary[$i] = rand(1, 20); + +for ($i = 0; 12 > $i; ++$i) { + $databary[$i] = \mt_rand(1, 20); } $months = $graph->gDateLocale->GetShortMonth(); // Use a text X-scale @@ -32,7 +34,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Create the bar plot $b1 = new Plot\BarPlot($databary); diff --git a/Examples/examples_bar/manual_textscale_ex3.php b/Examples/examples_bar/manual_textscale_ex3.php index d948728c..add140c1 100644 --- a/Examples/examples_bar/manual_textscale_ex3.php +++ b/Examples/examples_bar/manual_textscale_ex3.php @@ -1,23 +1,25 @@ SetShadow(); // Some data $databary = []; -for ($i = 0; $i < 12; ++$i) { - $databary[$i] = rand(1, 20); + +for ($i = 0; 12 > $i; ++$i) { + $databary[$i] = \mt_rand(1, 20); } $months = $graph->gDateLocale->GetShortMonth(); // Use a text X-scale @@ -32,7 +34,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Create the bar plot $b1 = new Plot\BarPlot($databary); diff --git a/Examples/examples_bar/manual_textscale_ex4.php b/Examples/examples_bar/manual_textscale_ex4.php index 47cc3df6..9a9b3700 100644 --- a/Examples/examples_bar/manual_textscale_ex4.php +++ b/Examples/examples_bar/manual_textscale_ex4.php @@ -1,27 +1,30 @@ SetShadow(); // Some data $months = []; -$datay = []; -$m = $graph->gDateLocale->GetShortMonth(); -$k = 0; -for ($i = 0; $i < 480; ++$i) { - $datay[$i] = rand(1, 40); +$datay = []; +$m = $graph->gDateLocale->GetShortMonth(); +$k = 0; + +for ($i = 0; 480 > $i; ++$i) { + $datay[$i] = \mt_rand(1, 40); + if ($i % Graph\Configs::getConfig('DATAPERMONTH') === 0) { $months[$i] = $m[(int) ($i / Graph\Configs::getConfig('DATAPERMONTH'))]; } else { @@ -34,7 +37,10 @@ // Specify X-labels $graph->xaxis->SetTickLabels($months); -$graph->xaxis->SetTextTickInterval(Graph\Configs::getConfig('DATAPERMONTH'), 0); +$graph->xaxis->SetTextTickInterval( + Graph\Configs::getConfig('DATAPERMONTH'), + 0 +); $graph->xaxis->SetTextLabelInterval(2); // Set title and subtitle @@ -42,7 +48,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->SetBox(true, 'red'); diff --git a/Examples/examples_bar/negbarvalueex01.php b/Examples/examples_bar/negbarvalueex01.php index 084cbd91..d18c0593 100644 --- a/Examples/examples_bar/negbarvalueex01.php +++ b/Examples/examples_bar/negbarvalueex01.php @@ -1,19 +1,20 @@ img->SetMargin(60, 30, 40, 40); $graph->SetScale('textlin'); $graph->SetShadow(); @@ -37,10 +38,18 @@ $graph->xaxis->title->Set('X-title'); $graph->yaxis->title->Set('Y-title'); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 12); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 12 +); $example_title = 'Example of bar plot with absolute labels'; $graph->title->set($example_title); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 16); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 16 +); $graph->Stroke(); diff --git a/Examples/examples_bar/new_bar3.php b/Examples/examples_bar/new_bar3.php index 0a29eb48..dea7d548 100644 --- a/Examples/examples_bar/new_bar3.php +++ b/Examples/examples_bar/new_bar3.php @@ -1,7 +1,7 @@ SetScale('textlin'); //$theme_class=DefaultTheme; diff --git a/Examples/examples_bar/no_dim_bartutex5.php b/Examples/examples_bar/no_dim_bartutex5.php index b1c500c9..8b467c1b 100644 --- a/Examples/examples_bar/no_dim_bartutex5.php +++ b/Examples/examples_bar/no_dim_bartutex5.php @@ -1,27 +1,29 @@ SetShadow(); // Some data $databary = []; $databarx = []; -$months = $graph->gDateLocale->GetShortMonth(); +$months = $graph->gDateLocale->GetShortMonth(); + +\mt_srand((float) \microtime() * 1000000); -srand((float) microtime() * 1000000); -for ($i = 0; $i < 25; ++$i) { - $databary[] = rand(1, 50); +for ($i = 0; 25 > $i; ++$i) { + $databary[] = \mt_rand(1, 50); $databarx[] = $months[$i % 12]; } // Use a text X-scale @@ -37,7 +39,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Create the bar plot $b1 = new Plot\BarPlot($databary); diff --git a/Examples/examples_bar/no_dim_bartutex6.php b/Examples/examples_bar/no_dim_bartutex6.php index 00471ff5..5911b519 100644 --- a/Examples/examples_bar/no_dim_bartutex6.php +++ b/Examples/examples_bar/no_dim_bartutex6.php @@ -1,26 +1,28 @@ SetShadow(); // Some data $databary = []; $databarx = []; -$months = $graph->gDateLocale->GetShortMonth(); -srand((float) microtime() * 1000000); -for ($i = 0; $i < 25; ++$i) { - $databary[] = rand(1, 50); +$months = $graph->gDateLocale->GetShortMonth(); +\mt_srand((float) \microtime() * 1000000); + +for ($i = 0; 25 > $i; ++$i) { + $databary[] = \mt_rand(1, 50); $databarx[] = $months[$i % 12]; } // Use a text X-scale @@ -38,7 +40,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Create the bar plot $b1 = new Plot\BarPlot($databary); diff --git a/Examples/examples_bar/no_dim_grace_ex0.php b/Examples/examples_bar/no_dim_grace_ex0.php index 5c59bbd8..ece88afa 100644 --- a/Examples/examples_bar/no_dim_grace_ex0.php +++ b/Examples/examples_bar/no_dim_grace_ex0.php @@ -1,10 +1,11 @@ img->SetMargin(40, 30, 40, 50); $graph->SetScale('textint'); $graph->SetFrame(true, 'blue', 1); @@ -24,7 +25,9 @@ // Setup X-axis labels $a = $graph->gDateLocale->GetShortMonth(); $graph->xaxis->SetTickLabels($a); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); $graph->xaxis->SetColor('darkblue', 'black'); // Setup hidden y-axis by given it the same color @@ -34,10 +37,16 @@ $graph->ygrid->SetColor('white'); // Setup graph title ands fonts$example_title='Using grace = 0'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->SetTitle('Year 2002', 'center'); $graph->xaxis->SetTitleMargin(10); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); // Add some grace to the top so that the scale doesn't // end exactly at the max value. @@ -53,7 +62,11 @@ // Setup the values that are displayed on top of each bar // Must use TTF fonts if we want text at an arbitrary angle $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 8); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 8 +); $bplot->value->SetFormat('$%d'); $bplot->value->SetColor('darkred'); $bplot->value->SetAngle(45); diff --git a/Examples/examples_bar/no_dim_grace_ex1.php b/Examples/examples_bar/no_dim_grace_ex1.php index b5048093..5dcdbc15 100644 --- a/Examples/examples_bar/no_dim_grace_ex1.php +++ b/Examples/examples_bar/no_dim_grace_ex1.php @@ -1,10 +1,11 @@ img->SetMargin(40, 30, 40, 50); $graph->SetScale('textint'); $graph->SetFrame(true, 'blue', 1); @@ -24,7 +25,9 @@ // Setup X-axis labels $a = $graph->gDateLocale->GetShortMonth(); $graph->xaxis->SetTickLabels($a); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); $graph->xaxis->SetColor('darkblue', 'black'); // Setup hidden y-axis by given it the same color @@ -34,10 +37,16 @@ $graph->ygrid->SetColor('white'); // Setup graph title ands fonts$example_title='Using grace = 10%'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->SetTitle('Year 2002', 'center'); $graph->xaxis->SetTitleMargin(10); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); // Add some grace to the top so that the scale doesn't // end exactly at the max value. @@ -53,7 +62,11 @@ // Setup the values that are displayed on top of each bar // Must use TTF fonts if we want text at an arbitrary angle $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 8); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 8 +); $bplot->value->SetFormat('$%d'); $bplot->value->SetColor('darkred'); $bplot->value->SetAngle(45); diff --git a/Examples/examples_bar/no_dim_grace_ex2.php b/Examples/examples_bar/no_dim_grace_ex2.php index 174d1c1b..6731bc5e 100644 --- a/Examples/examples_bar/no_dim_grace_ex2.php +++ b/Examples/examples_bar/no_dim_grace_ex2.php @@ -1,10 +1,11 @@ img->SetMargin(40, 30, 40, 50); $graph->SetScale('textint'); $graph->SetFrame(true, 'blue', 1); @@ -24,7 +25,9 @@ // Setup X-axis labels $a = $graph->gDateLocale->GetShortMonth(); $graph->xaxis->SetTickLabels($a); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); $graph->xaxis->SetColor('darkblue', 'black'); // Setup hidden y-axis by given it the same color @@ -34,10 +37,16 @@ $graph->ygrid->SetColor('white'); // Setup graph title ands fonts$example_title='Using grace = 50%'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->SetTitle('Year 2002', 'center'); $graph->xaxis->SetTitleMargin(10); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); // Add some grace to the top so that the scale doesn't // end exactly at the max value. @@ -53,7 +62,11 @@ // Setup the values that are displayed on top of each bar // Must use TTF fonts if we want text at an arbitrary angle $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 8); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 8 +); $bplot->value->SetFormat('$%d'); $bplot->value->SetColor('darkred'); $bplot->value->SetAngle(45); diff --git a/Examples/examples_bar/no_dim_grace_ex3.php b/Examples/examples_bar/no_dim_grace_ex3.php index 83639070..6d091db5 100644 --- a/Examples/examples_bar/no_dim_grace_ex3.php +++ b/Examples/examples_bar/no_dim_grace_ex3.php @@ -1,10 +1,11 @@ img->SetMargin(40, 30, 40, 50); $graph->SetScale('textint'); $graph->SetFrame(true, 'blue', 1); @@ -24,7 +25,9 @@ // Setup X-axis labels $a = $graph->gDateLocale->GetShortMonth(); $graph->xaxis->SetTickLabels($a); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT1')); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT1') +); $graph->xaxis->SetColor('darkblue', 'black'); // Setup hidden y-axis by given it the same color @@ -34,10 +37,16 @@ $graph->ygrid->SetColor('white'); // Setup graph title ands fonts$example_title='Using grace = 100%'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $graph->xaxis->SetTitle('Year 2002', 'center'); $graph->xaxis->SetTitleMargin(10); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); // Add some grace to the top so that the scale doesn't // end exactly at the max value. @@ -53,7 +62,11 @@ // Setup the values that are displayed on top of each bar // Must use TTF fonts if we want text at an arbitrary angle $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 8); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 8 +); $bplot->value->SetFormat('$%d'); $bplot->value->SetColor('darkred'); $bplot->value->SetAngle(45); diff --git a/Examples/examples_bar/no_dim_horizbarex1.php b/Examples/examples_bar/no_dim_horizbarex1.php index 11391697..ec4912dd 100644 --- a/Examples/examples_bar/no_dim_horizbarex1.php +++ b/Examples/examples_bar/no_dim_horizbarex1.php @@ -1,10 +1,11 @@ title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_BOLD'), 14); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_BOLD'), + 14 +); // Setup X-axis $graph->xaxis->SetTickLabels($datax); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 12); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 12 +); // Some extra margin looks nicer $graph->xaxis->SetLabelMargin(10); @@ -57,7 +66,11 @@ // We want to display the value of each bar at the top $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 12); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); $bplot->value->SetAlign('left', 'center'); $bplot->value->SetColor('black', 'darkred'); $bplot->value->SetFormat('%.1f mkr'); diff --git a/Examples/examples_bar/no_dim_horizbarex2.php b/Examples/examples_bar/no_dim_horizbarex2.php index 21250ea5..89b1a17e 100644 --- a/Examples/examples_bar/no_dim_horizbarex2.php +++ b/Examples/examples_bar/no_dim_horizbarex2.php @@ -1,27 +1,28 @@ SetScale('textlin'); -$top = 80; +$top = 80; $bottom = 30; -$left = 50; -$right = 30; +$left = 50; +$right = 30; $graph->Set90AndMargin($left, $right, $top, $bottom); // Nice shadow @@ -30,13 +31,21 @@ // Setup title $example_title = 'Horizontal bar graph ex 2'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_BOLD'), 14); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_BOLD'), + 14 +); $subtitle_text = '(Axis at top)'; $graph->subtitle->Set($subtitle_text); // Setup X-axis $graph->xaxis->SetTickLabels($datax); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 12); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 12 +); // Some extra margin looks nicer $graph->xaxis->SetLabelMargin(5); @@ -50,7 +59,11 @@ $graph->yaxis->SetLabelAlign('center', 'bottom'); $graph->yaxis->SetLabelAngle(45); $graph->yaxis->SetLabelFormat('%d'); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 12); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 12 +); // We don't want to display Y-axis //$graph->yaxis->Hide(); @@ -65,7 +78,11 @@ // We want to display the value of each bar at the top $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 12); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); $bplot->value->SetAlign('left', 'center'); $bplot->value->SetColor('black', 'darkred'); $bplot->value->SetFormat('%.1f mkr'); diff --git a/Examples/examples_bar/no_dim_horizbarex3.php b/Examples/examples_bar/no_dim_horizbarex3.php index 700da1ff..c432d0f2 100644 --- a/Examples/examples_bar/no_dim_horizbarex3.php +++ b/Examples/examples_bar/no_dim_horizbarex3.php @@ -1,10 +1,11 @@ SetScale('textlin'); -$top = 50; +$top = 50; $bottom = 80; -$left = 50; -$right = 20; +$left = 50; +$right = 20; $graph->Set90AndMargin($left, $right, $top, $bottom); $graph->xaxis->SetPos('min'); @@ -33,13 +34,21 @@ // Setup title $example_title = 'Horizontal bar graph ex 3'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_BOLD'), 14); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_BOLD'), + 14 +); $subtitle_text = '(Axis at bottom)'; $graph->subtitle->Set($subtitle_text); // Setup X-axis $graph->xaxis->SetTickLabels($datax); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD'), 12); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); // Some extra margin looks nicer $graph->xaxis->SetLabelMargin(5); @@ -59,13 +68,19 @@ // First make the labels look right $graph->yaxis->SetLabelAlign('center', 'top'); $graph->yaxis->SetLabelFormat('%d'); -$graph->yaxis->SetLabelSide(Graph\Configs::getConfig('SIDE_RIGHT')); +$graph->yaxis->SetLabelSide( + Graph\Configs::getConfig('SIDE_RIGHT') +); // The fix the tick marks -$graph->yaxis->SetTickSide(Graph\Configs::getConfig('SIDE_LEFT')); +$graph->yaxis->SetTickSide( + Graph\Configs::getConfig('SIDE_LEFT') +); // Finally setup the title -$graph->yaxis->SetTitleSide(Graph\Configs::getConfig('SIDE_RIGHT')); +$graph->yaxis->SetTitleSide( + Graph\Configs::getConfig('SIDE_RIGHT') +); $graph->yaxis->SetTitleMargin(35); // To align the title to the right use : @@ -76,10 +91,17 @@ //$graph->yaxis->SetTitle('Turnaround 2002','center'); //$graph->yaxis->title->Align('center'); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 12); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); $graph->yaxis->title->SetAngle(0); -$graph->yaxis->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_NORMAL')); +$graph->yaxis->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_NORMAL') +); // If you want the labels at an angle other than 0 or 90 // you need to use TTF fonts //$graph->yaxis->SetLabelAngle(0); @@ -94,7 +116,11 @@ // We want to display the value of each bar at the top $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 12); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 12 +); $bplot->value->SetAlign('left', 'center'); $bplot->value->SetColor('black', 'darkred'); $bplot->value->SetFormat('%.1f mkr'); diff --git a/Examples/examples_bar/no_dim_horizbarex6.php b/Examples/examples_bar/no_dim_horizbarex6.php index 25ec9ab7..5c3eabbe 100644 --- a/Examples/examples_bar/no_dim_horizbarex6.php +++ b/Examples/examples_bar/no_dim_horizbarex6.php @@ -1,20 +1,23 @@ title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_BOLD'), 11); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_BOLD'), + 11 +); $subtitle_text = '(Non optimized)'; $graph->subtitle->Set($subtitle_text); // Setup X-axis $graph->xaxis->SetTickLabels($datax); -$graph->xaxis->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 8); +$graph->xaxis->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 8 +); // Some extra margin looks nicer $graph->xaxis->SetLabelMargin(10); @@ -72,7 +83,11 @@ // We want to display the value of each bar at the top $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 10); +$bplot->value->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 10 +); //$bplot->value->SetAlign('left','center'); $bplot->value->SetColor('white'); $bplot->value->SetFormat('%.1f'); @@ -84,7 +99,11 @@ // Add some explanation text $txt = new Text\Text('Note: Higher value is better.'); $txt->SetPos(190, 399, 'center', 'bottom'); -$txt->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 8); +$txt->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 8 +); $graph->Add($txt); // .. and stroke the graph diff --git a/Examples/examples_bar/no_dim_logbarex1.php b/Examples/examples_bar/no_dim_logbarex1.php index 3f847e71..af2c4543 100644 --- a/Examples/examples_bar/no_dim_logbarex1.php +++ b/Examples/examples_bar/no_dim_logbarex1.php @@ -1,11 +1,12 @@ img->SetMargin(50,30,50,50); $graph->SetScale('textlog'); //$graph->SetShadow(); // Setup titles for graph and axis$example_title='Bar with logarithmic Y-scale'; $graph->title->set($example_title); -$graph->title->SetFont(Graph\Configs::getConfig('FF_VERDANA'), Graph\Configs::getConfig('FS_NORMAL'), 18); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_VERDANA'), + Graph\Configs::getConfig('FS_NORMAL'), + 18 +); $graph->xaxis->SetTitle('2002'); -$graph->xaxis->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 16); +$graph->xaxis->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 16 +); -$graph->yaxis->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_NORMAL'), 16); +$graph->yaxis->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_NORMAL'), + 16 +); $graph->yaxis->SetTitle('Y-title', 'center'); $graph->yaxis->SetTitleMargin(30); @@ -43,7 +56,8 @@ /* $bplot->SetShadow(); $bplot->value->Show(); -$bplot->value->SetFont(Graph\Configs::getConfig('FF_ARIAL'),FS_BOLD); +$bplot->value->SetFont( +Graph\Configs::getConfig('FF_ARIAL'),FS_BOLD); $bplot->value->SetAngle(45); $bplot->value->SetColor(black,darkred); */ diff --git a/Examples/examples_bar/no_dim_manual_textscale_ex1.php b/Examples/examples_bar/no_dim_manual_textscale_ex1.php index e31e76f3..f18165ab 100644 --- a/Examples/examples_bar/no_dim_manual_textscale_ex1.php +++ b/Examples/examples_bar/no_dim_manual_textscale_ex1.php @@ -1,22 +1,23 @@ SetShadow(); // Some data $databary = [12, 7, 16, 6, 7, 14, 9, 3]; -$months = $graph->gDateLocale->GetShortMonth(); +$months = $graph->gDateLocale->GetShortMonth(); // Use a text X-scale $graph->SetScale('textlin'); @@ -28,7 +29,10 @@ $graph->title->set($example_title); // Use built in font -$graph->title->SetFont(Graph\Configs::getConfig('FF_FONT1'), Graph\Configs::getConfig('FS_BOLD')); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_FONT1'), + Graph\Configs::getConfig('FS_BOLD') +); // Create the bar plot $b1 = new Plot\BarPlot($databary); diff --git a/Examples/examples_bar/no_test_new_bar1.php b/Examples/examples_bar/no_test_new_bar1.php index 6823710e..067533e7 100644 --- a/Examples/examples_bar/no_test_new_bar1.php +++ b/Examples/examples_bar/no_test_new_bar1.php @@ -1,7 +1,7 @@ SetScale('textlin'); $theme_class = new UniversalTheme(); diff --git a/Examples/examples_bar/no_test_new_bar4.php b/Examples/examples_bar/no_test_new_bar4.php index 22c2d761..c0ff2744 100644 --- a/Examples/examples_bar/no_test_new_bar4.php +++ b/Examples/examples_bar/no_test_new_bar4.php @@ -1,7 +1,7 @@ SetScale('textlin'); $theme_class = new UniversalTheme(); diff --git a/Examples/examples_bar/no_test_new_bar6.php b/Examples/examples_bar/no_test_new_bar6.php index e3c5d48e..35ec01df 100644 --- a/Examples/examples_bar/no_test_new_bar6.php +++ b/Examples/examples_bar/no_test_new_bar6.php @@ -1,10 +1,11 @@ SetScale('textlin'); $graph->SetY2Scale('lin', 0, 90); $graph->SetY2OrderBack(false); @@ -39,7 +41,7 @@ $graph->y2axis->SetTickPositions([30, 40, 50, 60, 70, 80, 90]); $months = $graph->gDateLocale->GetShortMonth(); -$months = array_merge(array_slice($months, 3, 9), array_slice($months, 0, 3)); +$months = \array_merge(\array_slice($months, 3, 9), \array_slice($months, 0, 3)); $graph->SetBox(false); $graph->ygrid->SetFill(false); @@ -61,7 +63,7 @@ // Create the grouped bar plot $gbbplot = new Plot\AccBarPlot([$b3plot, $b4plot, $b5plot]); -$gbplot = new Plot\GroupBarPlot([$b1plot, $b2plot, $gbbplot]); +$gbplot = new Plot\GroupBarPlot([$b1plot, $b2plot, $gbbplot]); // ...and add it to the graPH $graph->Add($gbplot); @@ -90,7 +92,11 @@ $lplot->SetBarCenter(); $lplot->SetColor('yellow'); $lplot->SetLegend('Houses'); -$lplot->mark->SetType(Graph\Configs::getConfig('MARK_X'), '', 1.0); +$lplot->mark->SetType( + Graph\Configs::getConfig('MARK_X'), + '', + 1.0 +); $lplot->mark->SetWeight(2); $lplot->mark->SetWidth(8); $lplot->mark->setColor('yellow'); @@ -100,9 +106,17 @@ $graph->legend->SetColumns(6); $graph->legend->SetColor('#4E4E4E', '#00A78A'); -$band = new Plot\PlotBand(Graph\Configs::getConfig('VERTICAL'), Graph\Configs::getConfig('BAND_RDIAG'), 11, 'max', 'khaki4'); +$band = new Plot\PlotBand( + Graph\Configs::getConfig('VERTICAL'), + Graph\Configs::getConfig('BAND_RDIAG'), + 11, + 'max', + 'khaki4' +); $band->ShowFrame(true); -$band->SetOrder(Graph\Configs::getConfig('DEPTH_BACK')); +$band->SetOrder( + Graph\Configs::getConfig('DEPTH_BACK') +); $graph->Add($band); $example_title = 'Combineed Line and Bar plots'; $graph->title->set($example_title); diff --git a/Examples/examples_bar/plotbanddensity_ex0.php b/Examples/examples_bar/plotbanddensity_ex0.php index 7d709fee..536979ff 100644 --- a/Examples/examples_bar/plotbanddensity_ex0.php +++ b/Examples/examples_bar/plotbanddensity_ex0.php @@ -1,19 +1,20 @@ SetScale('textlin'); $graph->SetMargin(25, 10, 20, 25); $graph->SetBox(true); @@ -31,13 +32,23 @@ $graph->Add($bplot); // Add band -$band = new Plot\PlotBand(Graph\Configs::getConfig('HORIZONTAL'), Graph\Configs::getConfig('BAND_3DPLANE'), 15, 35, 'khaki4'); +$band = new Plot\PlotBand( + Graph\Configs::getConfig('HORIZONTAL'), + Graph\Configs::getConfig('BAND_3DPLANE'), + 15, + 35, + 'khaki4' +); $band->SetDensity(10); $band->ShowFrame(true); $graph->AddBand($band); // Set title -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 10); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 10 +); $graph->title->SetColor('darkred'); $example_title = 'BAND_3DPLANE, Density=10'; $graph->title->set($example_title); diff --git a/Examples/examples_bar/plotbanddensity_ex1.php b/Examples/examples_bar/plotbanddensity_ex1.php index 7744f1db..7a1ee958 100644 --- a/Examples/examples_bar/plotbanddensity_ex1.php +++ b/Examples/examples_bar/plotbanddensity_ex1.php @@ -1,19 +1,20 @@ SetScale('textlin'); $graph->SetMargin(25, 10, 20, 25); $graph->SetBox(true); @@ -31,13 +32,23 @@ $graph->Add($bplot); // Add band -$band = new Plot\PlotBand(Graph\Configs::getConfig('HORIZONTAL'), Graph\Configs::getConfig('BAND_3DPLANE'), 15, 35, 'khaki4'); +$band = new Plot\PlotBand( + Graph\Configs::getConfig('HORIZONTAL'), + Graph\Configs::getConfig('BAND_3DPLANE'), + 15, + 35, + 'khaki4' +); $band->SetDensity(40); $band->ShowFrame(true); $graph->AddBand($band); // Set title -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 10); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 10 +); $graph->title->SetColor('darkred'); $example_title = 'BAND_3DPLANE, Density=40'; $graph->title->set($example_title); diff --git a/Examples/examples_bar/plotbanddensity_ex2.php b/Examples/examples_bar/plotbanddensity_ex2.php index 4b3bdcc5..9fa613ff 100644 --- a/Examples/examples_bar/plotbanddensity_ex2.php +++ b/Examples/examples_bar/plotbanddensity_ex2.php @@ -1,19 +1,20 @@ SetScale('textlin'); $graph->SetMargin(25, 10, 20, 25); $graph->SetBox(true); @@ -30,13 +31,23 @@ $graph->Add($bplot); // Add band -$band = new Plot\PlotBand(Graph\Configs::getConfig('HORIZONTAL'), Graph\Configs::getConfig('BAND_3DPLANE'), 15, 35, 'khaki4'); +$band = new Plot\PlotBand( + Graph\Configs::getConfig('HORIZONTAL'), + Graph\Configs::getConfig('BAND_3DPLANE'), + 15, + 35, + 'khaki4' +); $band->SetDensity(80); $band->ShowFrame(true); $graph->AddBand($band); // Set title -$graph->title->SetFont(Graph\Configs::getConfig('FF_ARIAL'), Graph\Configs::getConfig('FS_BOLD'), 10); +$graph->title->SetFont( + Graph\Configs::getConfig('FF_ARIAL'), + Graph\Configs::getConfig('FS_BOLD'), + 10 +); $graph->title->SetColor('darkred'); $example_title = 'BAND_3DPLANE, Density=80'; $graph->title->set($example_title); diff --git a/Examples/examples_canvas/canvasbezierex1.php b/Examples/examples_canvas/canvasbezierex1.php index 594b27f5..86de5d44 100644 --- a/Examples/examples_canvas/canvasbezierex1.php +++ b/Examples/examples_canvas/canvasbezierex1.php @@ -1,7 +1,7 @@ SetScale(); -$shape = new Graph\Shape($g, $g->scale); +$shape = new Graph\Shape($g, $g->getScale()); $example_title = 'Bezier line with control points'; $g->title->set($example_title); diff --git a/Examples/examples_canvas/canvasex05.php b/Examples/examples_canvas/canvasex05.php index 8498d46c..a1d0b2e4 100644 --- a/Examples/examples_canvas/canvasex05.php +++ b/Examples/examples_canvas/canvasex05.php @@ -1,7 +1,7 @@ SetMargin(5, 11, 6, 11); $g->SetShadow(); $g->SetMarginColor('teal'); @@ -29,7 +29,7 @@ // The shape class is wrapper around the Imgae class which translates // the coordinates for us -$shape = new Graph\Shape($g, $g->scale); +$shape = new Graph\Shape($g, $g->getScale()); $shape->SetColor('black'); // Add a black line diff --git a/Examples/examples_canvas/canvasex06.php b/Examples/examples_canvas/canvasex06.php index 4d182f34..7ce73625 100644 --- a/Examples/examples_canvas/canvasex06.php +++ b/Examples/examples_canvas/canvasex06.php @@ -1,7 +1,7 @@ SetMargin(5, 11, 6, 11); $g->SetShadow(); $g->SetMarginColor('teal'); @@ -29,7 +29,7 @@ // The shape class is wrapper around the Imgae class which translates // the coordinates for us -$shape = new Graph\Shape($g, $g->scale); +$shape = new Graph\Shape($g, $g->getScale()); $shape->SetColor('black'); $shape->IndentedRectangle(1, 2, 15, 15, 8, 8, Graph\Configs::getConfig('CORNER_TOPLEFT'), 'khaki'); diff --git a/Examples/examples_canvas/canvaspiralex1.php b/Examples/examples_canvas/canvaspiralex1.php index 8b7f7c53..e259ed50 100644 --- a/Examples/examples_canvas/canvaspiralex1.php +++ b/Examples/examples_canvas/canvaspiralex1.php @@ -1,7 +1,7 @@ $w) { $w = 60; } -if ($h < 60) { + +if (60 > $h) { $h = 60; } -$__width = $w; +$__width = $w; $__height = $h; -function SeaShell($img, $x, $y, $w, $h, $r, $n = 12, $color1 = 'navy', $color2 = 'red') -{ - $x += $w; - $w = (1 - $r) / $r * $w; +if (!\function_exists('SeaShell')) { + function SeaShell($img, $x, $y, $w, $h, $r, $n = 12, $color1 = 'navy', $color2 = 'red') + { + $x += $w; + $w = (1 - $r) / $r * $w; - $sa = 0; - $ea = 90; + $sa = 0; + $ea = 90; - $s1 = 1; - $s2 = -1; - $x_old = $x; - $y_old = $y; - for ($i = 1; $i < $n; ++$i) { - $sa += 90; - $ea += 90; - if ($i % 2 == 1) { - $y = $y + $s1 * $h * $r; - $h = (1 - $r) * $h; - $w = $w / (1 - $r) * $r; - $s1 *= -1; - $img->SetColor($color1); - $img->Line($x, $y, $x + $s1 * $w, $y); - } else { - $x = $x + $s2 * $w * $r; - $w = (1 - $r) * $w; - $h = $h / (1 - $r) * $r; - $s2 *= -1; - $img->SetColor($color1); - $img->Line($x, $y, $x, $y - $s2 * $h); - } - $img->SetColor($color2); - $img->FilledRectangle($x - 1, $y - 1, $x + 1, $y + 1); - $img->Arc($x, $y, 2 * $w + 1, 2 * $h + 1, $sa, $ea); - $img->Arc($x, $y, 2 * $w, 2 * $h, $sa, $ea); - $img->Arc($x, $y, 2 * $w - 1, 2 * $h - 1, $sa, $ea); - $img->Line($x_old, $y_old, $x, $y); + $s1 = 1; + $s2 = -1; $x_old = $x; $y_old = $y; + + for ($i = 1; $i < $n; ++$i) { + $sa += 90; + $ea += 90; + + if ($i % 2 === 1) { + $y = $y + $s1 * $h * $r; + $h = (1 - $r) * $h; + $w = $w / (1 - $r) * $r; + $s1 *= -1; + $img->SetColor($color1); + $img->Line($x, $y, $x + $s1 * $w, $y); + } else { + $x = $x + $s2 * $w * $r; + $w = (1 - $r) * $w; + $h = $h / (1 - $r) * $r; + $s2 *= -1; + $img->SetColor($color1); + $img->Line($x, $y, $x, $y - $s2 * $h); + } + $img->SetColor($color2); + $img->FilledRectangle($x - 1, $y - 1, $x + 1, $y + 1); + $img->Arc($x, $y, 2 * $w + 1, 2 * $h + 1, $sa, $ea); + $img->Arc($x, $y, 2 * $w, 2 * $h, $sa, $ea); + $img->Arc($x, $y, 2 * $w - 1, 2 * $h - 1, $sa, $ea); + $img->Line($x_old, $y_old, $x, $y); + $x_old = $x; + $y_old = $y; + } } } - $g = new Graph\CanvasGraph($__width, $__height); //$gr = 1.61803398874989484820; $example_title = 'Canvas Spiral'; @@ -83,7 +87,10 @@ function SeaShell($img, $x, $y, $w, $h, $r, $n = 12, $color1 = 'navy', $color2 = $p = SeaShell($g->img, 0, 20, $w - 1, $h - 21, $r, 19); $g->img->SetColor('black'); $g->img->Rectangle(0, 20, $w - 1, $h - 1); -$g->img->SetFont(Graph\Configs::getConfig('FF_FONT2'), Graph\Configs::getConfig('FS_BOLD')); +$g->img->SetFont( + Graph\Configs::getConfig('FF_FONT2'), + Graph\Configs::getConfig('FS_BOLD') +); $g->img->SetTextAlign('center', 'top'); $g->img->StrokeText($w / 2, 0, $example_title); diff --git a/Examples/examples_canvas/example_canvas_mkgrad.php b/Examples/examples_canvas/example_canvas_mkgrad.php index 6f449a8b..37ff8aeb 100644 --- a/Examples/examples_canvas/example_canvas_mkgrad.php +++ b/Examples/examples_canvas/example_canvas_mkgrad.php @@ -1,7 +1,7 @@ iColors = array_keys($rgb->rgb_table); - usort($this->iColors, '_cmp'); + $rgb = new Image\RGB(); + $this->iColors = \array_keys($rgb->rgb_table); + \usort($this->iColors, '_cmp'); $this->iGradstyles = [ 'Vertical', 2, @@ -47,7 +48,7 @@ public function __construct() public function Run($example_title) { - echo "