Server IP : 103.119.228.120 / Your IP : 18.224.31.90 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/local/share/perl5/GD/Graph/ |
Upload File : |
#========================================================================== # Copyright (c) 1995-1998 Martien Verbruggen #-------------------------------------------------------------------------- # # Name: # GD::Graph::points.pm # # $Id: points.pm,v 1.13 2005/12/14 04:13:32 ben Exp $ # #========================================================================== package GD::Graph::points; ($GD::Graph::points::VERSION) = '$Revision: 1.13 $' =~ /\s([\d.]+)/; use strict; use GD::Graph::axestype; use GD::Graph::utils qw(:all); @GD::Graph::points::ISA = qw( GD::Graph::axestype ); # PRIVATE sub draw_data_set { my $self = shift; my $ds = shift; my @values = $self->{_data}->y_values($ds) or return $self->_set_error("Impossible illegal data set: $ds", $self->{_data}->error); # Pick a colour my $dsci = $self->set_clr($self->pick_data_clr($ds)); my $type = $self->pick_marker($ds); for (my $i = 0; $i < @values; $i++) { next unless defined $values[$i]; my ($xp, $yp); if (defined($self->{x_min_value}) && defined($self->{x_max_value})) { ($xp, $yp) = $self->val_to_pixel( $self->{_data}->get_x($i), $values[$i], $ds); } else { ($xp, $yp) = $self->val_to_pixel($i+1, $values[$i], $ds); } $self->marker($xp, $yp, $type, $dsci ); $self->{_hotspots}->[$ds]->[$i] = ['rect', $self->marker_coordinates($xp, $yp)]; } return $ds; } # Pick a marker type sub pick_marker # number { my $self = shift; my $num = shift; ref $self->{markers} ? $self->{markers}[ $num % (1 + $#{$self->{markers}}) - 1 ] : ($num % 8) || 8; } # Draw a marker sub marker_coordinates { my $self = shift; my ($xp, $yp) = @_; return ( $xp - $self->{marker_size}, $xp + $self->{marker_size}, $yp + $self->{marker_size}, $yp - $self->{marker_size}, ); } sub marker # $xp, $yp, $type, $colourindex { my $self = shift; my ($xp, $yp, $mtype, $mclr) = @_; return unless defined $mclr; my ($l, $r, $b, $t) = $self->marker_coordinates($xp, $yp); MARKER: { ($mtype == 1) && do { # Square, filled $self->{graph}->filledRectangle($l, $t, $r, $b, $mclr); last MARKER; }; ($mtype == 2) && do { # Square, open $self->{graph}->rectangle($l, $t, $r, $b, $mclr); last MARKER; }; ($mtype == 3) && do { # Cross, horizontal $self->{graph}->line($l, $yp, $r, $yp, $mclr); $self->{graph}->line($xp, $t, $xp, $b, $mclr); last MARKER; }; ($mtype == 4) && do { # Cross, diagonal $self->{graph}->line($l, $b, $r, $t, $mclr); $self->{graph}->line($l, $t, $r, $b, $mclr); last MARKER; }; ($mtype == 5) && do { # Diamond, filled $self->{graph}->line($l, $yp, $xp, $t, $mclr); $self->{graph}->line($xp, $t, $r, $yp, $mclr); $self->{graph}->line($r, $yp, $xp, $b, $mclr); $self->{graph}->line($xp, $b, $l, $yp, $mclr); $self->{graph}->fillToBorder($xp, $yp, $mclr, $mclr); last MARKER; }; ($mtype == 6) && do { # Diamond, open $self->{graph}->line($l, $yp, $xp, $t, $mclr); $self->{graph}->line($xp, $t, $r, $yp, $mclr); $self->{graph}->line($r, $yp, $xp, $b, $mclr); $self->{graph}->line($xp, $b, $l, $yp, $mclr); last MARKER; }; ($mtype == 7) && do { # Circle, filled $self->{graph}->arc($xp, $yp, 2 * $self->{marker_size}, 2 * $self->{marker_size}, 0, 360, $mclr); $self->{graph}->fillToBorder($xp, $yp, $mclr, $mclr); last MARKER; }; ($mtype == 8) && do { # Circle, open $self->{graph}->arc($xp, $yp, 2 * $self->{marker_size}, 2 * $self->{marker_size}, 0, 360, $mclr); last MARKER; }; ($mtype == 9) && do { # Horizontal line $self->{graph}->line($l, $yp, $r, $yp, $mclr); last MARKER; }; ($mtype == 10) && do { # vertical line $self->{graph}->line($xp, $t, $xp, $b, $mclr); last MARKER; }; } } sub draw_legend_marker { my $self = shift; my $n = shift; my $x = shift; my $y = shift; my $ci = $self->set_clr($self->pick_data_clr($n)); my $old_ms = $self->{marker_size}; my $ms = _min($self->{legend_marker_height}, $self->{legend_marker_width}); ($self->{marker_size} > $ms/2) and $self->{marker_size} = $ms/2; $x += int($self->{legend_marker_width}/2); $y += int($self->{lg_el_height}/2); $n = $self->pick_marker($n); $self->marker($x, $y, $n, $ci); $self->{marker_size} = $old_ms; } "Just another true value";