Tag
Pgfplots
- How to Plot Inverse Hyperbolic Functions in PGFPlotsPlot inverse hyperbolic functions in PGFPlots by declaring them with logarithm and square-root formulas, and restricting each plot to its domain.
- How to Include a Matplotlib Figure in LaTeXSave a complex Matplotlib figure as PDF, then include it in LaTeX with graphicx. Use PNG only when raster output is required.
- How to Make Dotted Grid Lines in pgfplotsUse grid style={dotted} in pgfplots, with grid=both and minor tick settings when you need dotted major and minor grids.
- How to Make a Vertical Box Plot Horizontal in PGFPlotsRotate a PGFPlots box plot by setting boxplot/draw direction=x, then place category labels on the y-axis and values on the x-axis.
- How Do You Determine a Line’s Slope in PGFPlots?Calculate a PGFPlots line’s slope from its data coordinates; learn why automatic axis scaling changes its appearance and how to show it accurately.
- How to Choose and Change a 3D View in TikZSet TikZ's projected x, y, and z directions to change a 3D drawing's view; use pgfplots' view option for plotted 3D data.
- How to Extend the X-Axis in a PGFPlots GraphIn PGFPlots, set xmin and xmax to control the visible x-range; use enlarge x limits for automatic padding, and distinguish limits from plot domain.
- How to Plot CSV Columns with pgfplotsinvokeforeachRead a comma-separated file with pgfplotstable, then use pgfplotsinvokeforeach to plot selected columns against a shared x-column.
- How to Draw a PGFPlots Boxplot from One Data RowTo plot one data row as a PGFPlots boxplot, extract its values into a column and pass that column to the boxplot plot handler.
- How to Draw a Spline with PGFPlotsUse PGFPlots' smooth option to draw a curve through coordinate points, and learn when you need a mathematically defined cubic spline instead.
- How to Draw the Same Angles in pgfplots and TikZMake angles in pgfplots match TikZ by using equal x- and y-unit lengths, then place angle markers at axis coordinates.
- How to Plot Different Scales on the Same PGFPlots FigurePlot data with different y-scales in PGFPlots by overlaying two aligned axes with a shared x-range and separate y-limits.
- How to Make a Variation Table and Graph of ln(x) in TikZBuild a LaTeX variation table for ln(x) and plot its graph with TikZ and PGFPlots using a complete example, with domain and monotonicity notes.
- How to Repeat a PGFPlots Style Every n PlotsTo repeat a PGFPlots style every n plots, define a custom cycle list with repeated style entries; each addplot uses the next entry.
- How to Define a Function Once in PGFPlotsDeclare a PGF math function once, then use it for numerical calculations and ordinary PGFPlots curves without duplicating its formula.
- How to Annotate a Slope Triangle in a PGFPlots AxisDraw a slope triangle in a PGFPlots axis with axis-coordinate segments and labels for the run, rise, and calculated slope.
- How to Add a Label to a Plot in PGFPlotsIn PGFPlots, label a curve with \addlegendentry or annotate a point with a TikZ node placed at an axis coordinate.
- How to Add Error Bars to a Bar Plot in PGFPlotsAdd vertical error bars to a PGFPlots bar chart with y dir=both and y explicit, then provide each bar’s value and uncertainty.
- How to Add a Vertical Line to a TikZ PlotAdd a vertical line to a PGFPlots graph with a two-point coordinate plot, or draw it in axis coordinates for precise placement.
- Why Does a PGFPlots Cycle List Produce No Colors?Define each PGFPlots cycle-list entry as a plot style, select the list by name, and use \addplot+ to preserve its colors when adding options.
- How to Set Line Colors in PGFPlotsSet one PGFPlots line with a draw color, or define a cycle list to assign repeatable colors and styles to multiple plotted series.
- How to Position Tick Scale Labels in pgfplotsPosition pgfplots’ tick scale multiplier with the x or y tick scale label style key, or move individual tick numbers with xticklabel pos and yticklabel pos.
- How to Set a Colormap for Bars in PGFPlotsA PGFPlots colormap does not automatically recolor every bar in one ybar plot. Split bars into plots for distinct colors, or set one fill explicitly.
- How to Fill the Region Between Two Lines in TikZUse PGFPlots’ fillbetween library to shade the area between named plot paths, with a complete example and notes on domains and intersections.