Menu

how make a image map

Ancalon
2013-11-13
2013-11-15
  • Ancalon

    Ancalon - 2013-11-13

    Hallo zusammen,
    ich bin am versuchen meiner grafik eine beschriftung zu geben doch leider bekommen ich es nicht hin.
    Dazu kommt das ich die Punkte in 3 farben unterscheiden will beide daten kommen aus eine MSQl Datenbank.

    anbei noch ein foto wie weit ich bis hier gekommen bin.
    http://s1.directupload.net/file/d/3440/a76utkik_png.htm

    Ich werde das ganze mit google Übersezen da mein english noch schlechter ist als mein deutsch.


    Hi there,
    I am trying to give my artwork a caption but unfortunately I do not get it back.
    In addition I want to distinguish the points in 3 colors both MSQL data come from a database.

    attached another photo how far I've come up here.
    http://s1.directupload.net/file/d/3440/a76utkik_png.htm

    I'm going with the whole google Übersezen since my englich is even worse than my German.

     
  • lbayuk

    lbayuk - 2013-11-13

    (Google translate, sorry)

    To have your data points use different colors,
    you can use more columns in your data array.

    Um Ihre Datenpunkte mit unterschiedlichen Farben,
    Sie können mehrere Spalten im Daten Array verwenden.

      $data = array(
                array('', $x1, $y11, $y21, $y31),
                array('', $x2, $y12, $y22, $y32),
                ...
                   );
    

    All the y1- numbers will be drawn in the first data color,
    the y2- numbers will be drawn in the second data color,
    and the y3- numbers will be drawn in the third data color.

    Alle y1- Nummern werden in der ersten Daten Farbe gezeichnet werden,
    die y2- Nummern werden in der zweiten Daten Farbe gezeichnet werden,
    und die y3- Nummern werden in der dritten Daten Farbe gezeichnet werden.

    If your data is all (x,y) pairs - a unique X for each Y,
    then you can use empty strings in the array.

    Wenn Ihre Daten alle (x, y)-Paare - eine einzigartige X für jedes Y,
    dann können Sie leere Zeichenfolgen in dem Array verwenden.

      $data = array(
                array('', $x1, '',  $y1, ''),   // y1 in color 2
                array('', $x2, $y2, '',  ''),   // y2 in color 1
                array('', $x3, '',  '', $y3),   // y3 in color 3
                ...
                   );
    

    There is a more advanced way to control data point colors
    using the Data Color Callback.

    Es ist eine erweiterte Möglichkeit, Datenpunkt Farben steuern
    Verwendung der Daten Farbe Callback.

    http://phplot.sourceforge.net/phplotdocs/adv-datacolor-callback.html

    What type of caption do you want?
    Your plot already has a title: "Scatterplot (points plot)".

    Welche Art von Beschriftung wollen Sie?
    Ihr Grundstück hat bereits einen Titel: "Scatterplot (points plot)"

     
  • Ancalon

    Ancalon - 2013-11-14

    What type of caption do you want?
    Your plot already has a title: "Scatterplot (points plot)".

    I will set the nummber from the shops out the data base i have already a variable like
    $filnr in my sorce. i need on any point the shopnummber from 0 to 199.

    To have your data points use different colors,
    you can use more columns in your data array.

    Can I set the colors like 3 classes maybe blue red and green
    and take the data for the colore out the database. For example
    I have 3 different branches and need for all a different colore.

    thanks a lot for your help

     

    Last edit: Ancalon 2013-11-14
  • lbayuk

    lbayuk - 2013-11-15

    Sorry, I do not understand the first part. Are you trying to label the data points within the plot? These are Y Data Labels, enabled with $plot->SetYDataLabelPos('plotin').

    Here is an example that makes a points plot (scatter plot) with 3 different colors for the points. A column from the database query (here simulated with an array) selects the color. [wiki:SampleScatterplotColor]

     

    Related

    Wiki: SampleScatterplotColor


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.