Plot settings

.qp.theme

Add a theme node to a specification

Parameter(s):

Name Type Description
t dict partial or whole theme
s table specification

Returns:

Name Type Description
<returns> table new specification

Example: Default theme

         SPEC : .qp.layout[`vert;::] (
         .qp.title["User Trend Report"]
         .qp.line[([]x:til 4500; y:sums ?[4500?1.<0.5;-1;1]); `x; `y]
             .qp.s.aes[`fill; `x]
            ,.qp.s.scale[`fill; .gg.scale.colour.gradient[0xad63e9; 0x2871e7]];

         .qp.title["Sales Report"]
         .qp.line[([]x:til 4500; y:sums ?[4500?1.<0.5;-1;1]); `x; `y]
             .qp.s.aes[`fill; `x]
            ,.qp.s.scale[`fill; .gg.scale.colour.gradient[0xad63e9; 0x2871e7]]);

          SPEC

Image

Example: Explicit default theme

     .qp.theme[.gg.theme.default] SPEC

Image

Example: Dark theme

     .qp.theme[.gg.theme.dark] SPEC

Image

Example: Deep Blue

     .qp.theme[.gg.theme.deepblue] SPEC

Image

Example: Light theme

     .qp.theme[.gg.theme.light] SPEC

Image

Example: Clean theme

     .qp.theme[.gg.theme.clean] SPEC

Image

Example: Transparent theme

     .qp.theme[.gg.theme.transparent] SPEC

Image

Example: White theme

     .qp.theme[.gg.theme.white] SPEC

Image

Example: Blank theme

     .qp.theme[.gg.theme.blank] SPEC

Image

.qp.title

Add a title node to a specification

Parameter(s):

Name Type Description
title char[]
spec table

Returns:

Name Type Description
<returns> table

Example:

      .qp.title["A basic scatterplot"] 
          .qp.point[([]x:til 45); `x; `x; ::]

Image