PlotStyle
✖
PlotStyle
is an option for plotting and related functions that specifies styles in which objects are to be drawn.
Details
- PlotStyle->g specifies that a graphics directive g should be used to draw all the main objects in a plot.
- PlotStyle->{g1,g2,…} specifies that successive directives gi should be used cyclically for successive objects.
- The directives that can be given include:
-
Dashing[{w1,…}] dashing specification Directive[g1,g2,…] composite graphics directive EdgeForm[g] edge-drawing specification FaceForm[g] face-drawing specification Glow[c] glow color GrayLevel[i] intensity Hue[h] hue Opacity[a] opacity PointSize[d] point size Red, Blue, etc. named colors RGBColor[r,g,b] RGB color Specularity[s] surface specularity Thickness[w] line thickness - For individual gi, a list of directives is equivalent to Directive[…]. For a single g, a list of directives must be given as {list}.
- PlotStyle can apply to points, lines and surfaces.
- PlotStyle->None specifies that the main objects in a plot should not be drawn explicitly, though mesh and filling are not affected.
- If an explicit setting is given for ColorFunction, MeshShading or ContourShading, it is used in preference to the setting for PlotStyle.
Examples
Basic Examples (5)Summary of the most common use cases
Plot and related functions will automatically style multiple curves:
https://wolfram.com/xid/0e7octq2-o1trw
Explicitly style different curves:
https://wolfram.com/xid/0e7octq2-gestl4
https://wolfram.com/xid/0e7octq2-fqc1uo
Use transparency to show hidden features:
https://wolfram.com/xid/0e7octq2-rsqi1b
Use transparency to show overlapping regions:
https://wolfram.com/xid/0e7octq2-tvragg
Wolfram Research (1988), PlotStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/PlotStyle.html (updated 2007).
Text
Wolfram Research (1988), PlotStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/PlotStyle.html (updated 2007).
Wolfram Research (1988), PlotStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/PlotStyle.html (updated 2007).
CMS
Wolfram Language. 1988. "PlotStyle." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/PlotStyle.html.
Wolfram Language. 1988. "PlotStyle." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/PlotStyle.html.
APA
Wolfram Language. (1988). PlotStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PlotStyle.html
Wolfram Language. (1988). PlotStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PlotStyle.html
BibTeX
@misc{reference.wolfram_2024_plotstyle, author="Wolfram Research", title="{PlotStyle}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/PlotStyle.html}", note=[Accessed: 07-January-2025
]}
BibLaTeX
@online{reference.wolfram_2024_plotstyle, organization={Wolfram Research}, title={PlotStyle}, year={2007}, url={https://reference.wolfram.com/language/ref/PlotStyle.html}, note=[Accessed: 07-January-2025
]}