I don’t know if there’s a “best” way… they’re pretty equivalent
If you like the PX API then creating multiple figures that way and reassembling their traces is a fine way to go. If you want finer-grained control, you can build up a figure from graph objects, or pretty much anything in between.