IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28870


Ignore:
Timestamp:
Aug 9, 2010, 12:58:41 PM (16 years ago)
Author:
rhenders
Message:

Fixing fonts. Hardcoding path to arial font for time-being

Location:
trunk/tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czarplot.pl

    r28868 r28870  
    7171$czarDb->setDateFormat("%Y%m%d-%H%i%s");
    7272
    73 my $czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", $savingToFile ? "png" : "X11", $path, $save_temps);
     73my $czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", $savingToFile ? "png font \"/usr/share/fonts/corefonts/arial.ttf\" 8" : "X11", $path, $save_temps);
    7474
    7575my @allStages = ("chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist");
  • trunk/tools/czartool/Czarplot.pm

    r28862 r28870  
    272272    my ($self, $fromTime, $toTime) = @_;
    273273
    274     my $outputFile = "/tmp/czarplot_cluster.png";
     274    my $prefix = $self->{_outputPath} ? $self->{_outputPath} : ".";
     275    my $outputFile = "$prefix/czarplot_cluster.png";
    275276    my ($minX, $maxX, $minY, $maxY, $timeDiff);
    276277
     
    347348    my ($self) = @_;
    348349
    349     my $outputFile = "/tmp/czarplot_hosts_space.png";
     350    my $prefix = $self->{_outputPath} ? $self->{_outputPath} : "."; # TODO should be function for this
     351    my $outputFile = "$prefix/czarplot_hosts_space.png";
    350352    my $limit = 97.0;
    351353    my $inputFile = $self->{_czarDb}->createHostsData($limit);
  • trunk/tools/roboczar.pl

    r28862 r28870  
    2626my $nebulous = new czartool::Nebulous($czarDb);
    2727my $pantasks = new czartool::Pantasks();
    28 my $czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", "png", "/tmp", $save_temps);
     28my $czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", "png font \"/usr/share/fonts/corefonts/arial.ttf\" 8", "/tmp", $save_temps); # TODO hardcoded font path
    2929$czarDb->setDateFormat("%Y%m%d-%H%i%s");
    3030
Note: See TracChangeset for help on using the changeset viewer.