#lang typed/racket/base

(require "common/types.rkt")

(provide
 Treeof
 Anchor
 Plot-Color
 Plot-Pen-Style
 Plot-Brush-Style
 Point-Sym
 List-Generator
 Plot-Colors
 Plot-Pen-Styles
 Pen-Widths
 Plot-Brush-Styles
 Alphas
 Labels
 Contour-Levels
 Image-File-Format)

(require "common/math.rkt")

(provide
 (struct-out ivl))

(require "common/axis-transform.rkt"
         (only-in "common/leftover-contracts.rkt"
                  axis-transform/c))

(provide
 (struct-out invertible-function)
 Axis-Transform
 axis-transform/c
 id-function
 invertible-compose
 invertible-inverse
 id-transform
 apply-axis-transform
 make-axis-transform
 axis-transform-compose
 axis-transform-append
 axis-transform-bound
 log-transform
 cbrt-transform
 hand-drawn-transform
 stretch-transform
 collapse-transform)

(require "common/parameters.rkt")

(provide
 plot-deprecation-warnings?
 ;; General plot parameters
 plot-x-axis?
 plot-y-axis?
 plot-z-axis?
 plot-x-far-axis?
 plot-y-far-axis?
 plot-z-far-axis?
 plot-x-tick-labels?
 plot-y-tick-labels?
 plot-z-tick-labels?
 plot-x-far-tick-labels?
 plot-y-far-tick-labels?
 plot-z-far-tick-labels?
 plot-x-tick-label-anchor
 plot-y-tick-label-anchor
 plot-x-far-tick-label-anchor
 plot-y-far-tick-label-anchor
 plot-x-tick-label-angle
 plot-y-tick-label-angle
 plot-x-far-tick-label-angle
 plot-y-far-tick-label-angle
 plot-width plot-height
 plot-foreground
 plot-foreground-alpha
 plot-background
 plot-background-alpha
 plot-line-width
 plot-tick-size
 plot-font-size
 plot-font-face
 plot-font-family
 plot-legend-anchor
 plot-legend-box-alpha
 plot-decorations?
 plot-animating?
 plot3d-samples
 plot3d-angle
 plot3d-altitude
 plot3d-ambient-light
 plot3d-diffuse-light?
 plot3d-specular-light?
 plot-new-window?
 plot-jpeg-quality
 plot-ps/pdf-interactive?
 plot-ps-setup
 plot-title
 plot-x-label
 plot-y-label
 plot-z-label
 plot-x-far-label
 plot-y-far-label
 plot-z-far-label
 plot-x-transform
 plot-x-ticks
 plot-x-far-ticks
 plot-y-transform
 plot-y-ticks
 plot-y-far-ticks
 plot-z-transform
 plot-z-ticks
 plot-z-far-ticks
 plot-d-ticks
 plot-r-ticks
 ;; Renderer parameters
 line-samples
 line-color
 line-width
 line-style
 line-alpha
 interval-color
 interval-style
 interval-line1-color
 interval-line1-width
 interval-line1-style
 interval-line2-color
 interval-line2-width
 interval-line2-style
 interval-alpha
 point-sym
 point-color
 point-size
 point-x-jitter
 point-y-jitter
 point-z-jitter
 point-line-width
 point-alpha
 vector-field-samples
 vector-field-color
 vector-field-line-width
 vector-field-line-style
 vector-field-scale
 vector-field-alpha
 vector-field3d-samples
 error-bar-width
 error-bar-color
 error-bar-line-width
 error-bar-line-style
 error-bar-alpha
 candlestick-width
 candlestick-up-color
 candlestick-down-color
 candlestick-line-width
 candlestick-line-style
 candlestick-alpha
 contour-samples
 contour-levels
 contour-colors
 contour-widths
 contour-styles
 contour-alphas
 contour-interval-colors
 contour-interval-styles
 contour-interval-alphas
 rectangle-color
 rectangle-style
 rectangle-line-color
 rectangle-line-width
 rectangle-line-style
 rectangle-alpha
 rectangle3d-line-width
 discrete-histogram-gap
 discrete-histogram-skip
 discrete-histogram-invert?
 stacked-histogram-colors
 stacked-histogram-styles
 stacked-histogram-line-colors
 stacked-histogram-line-widths
 stacked-histogram-line-styles
 stacked-histogram-alphas
 x-axis-ticks?
 y-axis-ticks?
 z-axis-ticks?
 x-axis-labels?
 y-axis-labels?
 z-axis-labels?
 x-axis-far?
 y-axis-far?
 z-axis-far?
 x-axis-alpha
 y-axis-alpha
 z-axis-alpha
 polar-axes-number
 polar-axes-ticks?
 polar-axes-labels?
 polar-axes-alpha
 label-anchor
 label-angle
 label-alpha
 label-point-size
 surface-color
 surface-style
 surface-line-color
 surface-line-width
 surface-line-style
 surface-alpha
 contour-interval-line-colors
 contour-interval-line-widths
 contour-interval-line-styles
 isosurface-levels
 isosurface-colors
 isosurface-styles
 isosurface-line-colors
 isosurface-line-widths
 isosurface-line-styles
 isosurface-alphas
 ;; Functions
 pen-gap
 animated-samples
 default-contour-colors
 default-contour-fill-colors
 default-isosurface-colors
 default-isosurface-line-colors)

(require "common/date-time.rkt")

(provide
 (struct-out plot-time)
 plot-time->seconds
 seconds->plot-time
 datetime->real)

(require "common/ticks.rkt"
         (only-in "common/leftover-contracts.rkt"
                  ticks-layout/c
                  ticks-format/c))

(provide
 (struct-out pre-tick)
 (struct-out tick)
 (struct-out ticks)
 Ticks-Layout
 Ticks-Format
 ticks-layout/c
 ticks-format/c
 ticks-generate
 24h-descending-date-ticks-formats
 12h-descending-date-ticks-formats
 24h-descending-time-ticks-formats
 12h-descending-time-ticks-formats
 us-currency-scales
 uk-currency-scales
 eu-currency-scales
 us-currency-formats
 uk-currency-formats
 eu-currency-formats
 no-ticks-layout
 no-ticks-format
 no-ticks
 ticks-default-number
 ticks-mimic
 ticks-scale
 ticks-add
 linear-scale
 linear-ticks-layout
 linear-ticks-format
 linear-ticks
 log-ticks-layout
 log-ticks-format
 log-ticks
 date-ticks-formats
 date-ticks-layout
 date-ticks-format
 date-ticks
 time-ticks-formats
 time-ticks-layout
 time-ticks-format
 time-ticks
 bit/byte-ticks-format
 bit/byte-ticks
 currency-ticks-scales
 currency-ticks-formats
 currency-ticks-format
 currency-ticks
 fraction-ticks-format
 fraction-ticks
 collapse-ticks
 contour-ticks
 format-tick-labels)

(require "common/plot-element.rkt"
         "common/nonrenderer.rkt"
         "plot2d/renderer.rkt"
         "plot3d/renderer.rkt")

(provide
 (struct-out plot-element)
 (struct-out nonrenderer)
 (struct-out renderer2d)
 (struct-out renderer3d))
