Does PHPlot support a partially italic string as a label? For instance I would like to have "m/z values" as a label for my x-axis or will i be forced to do this via a (double) callback?
PHPlot just passes the text strings to the PHP GD extension to draw, and GD has no way to change fonts within a string. If you really want to do it, you can use a callback (don't need 2). Here is an example from a previous thread.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does PHPlot support a partially italic string as a label? For instance I would like to have "m/z values" as a label for my x-axis or will i be forced to do this via a (double) callback?
Last edit: Tarskin 2012-12-13
PHPlot just passes the text strings to the PHP GD extension to draw, and GD has no way to change fonts within a string. If you really want to do it, you can use a callback (don't need 2). Here is an example from a previous thread.