Graphics, Figures & Tablespgfplots | Multiple Plots with same Legend

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pranav
Posts: 5
Joined: Mon Nov 26, 2012 9:24 am

pgfplots | Multiple Plots with same Legend

Post by pranav »

Hi,

I want to draw multiple plots with a common legend in same figure. For example plotting variation in measurement uncertainty along x, y, z axes for a particular sensor for different distances of object from sensor. Specifically, a common "Distance" vs "Uncertainty" graph with separate plots for x, y, z axes all having common legend (e.g. sensor name) to compare among multiple such sensors.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pgfplots | Multiple Plots with same Legend

Post by localghost »

In order to give an adequate problem description and to prevent others from random shots and guesswork please show what you have tried so far by a self-contained and minimal example.


Thorsten
Post Reply