[Jprogramming] plot type - horizontal bar chart

'Mike Day' via Programming programming at jsoftware.com
Wed Jun 12 13:18:07 UTC 2019


Short answer: Vertical bars "yes" - Horizontal "no"....

Not remembering the answer,  my lazy take on this was to type
    plot
and see that it's a cover for plot_jwplot_

I then had a look at that function, to see the line
   if. (<ind {. first) e. PlotTypes do.
where it's parsing the optional left hand argument.

PlotTypes_jwplot is a 22-element boxed list:
    4 6 $ 24 {.PlotTypes_jwplot_
+-----+------+-------+-------+----+--------+
|area |bar   |contour|density|dot |errorbar|
+-----+------+-------+-------+----+--------+
|fbar |fbarv |hilo   |hist   |line|marker  |
+-----+------+-------+-------+----+--------+
|pie  |poly  |point  |radar  |sbar|sbarv   |
+-----+------+-------+-------+----+--------+
|stick|symbol|surface|wire   |    |        |
+-----+------+-------+-------+----+--------+

The only available options appear to be vertical bars of various
kinds, as demonstrated with
    Help/Studio/Showcase/plot/2d/Bar Sampler

(The variants fbarv and sbarv appear to reverse the order of elements
in the stacked bars.)

Others might know if it's possible and if so, how, to transpose the
graph.

OK?

Mike


On 12/06/2019 11:32, Mario C wrote:
> Is there a chance to get the plot type of a horizontal bar chart?
>
> Best regards, Mario Chemnitz
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the Programming mailing list