Adding image generated from another library as inset in matplotlib
问题 I've generated a network figure using vedo library and I'm trying to add this as an inset to a figure generated in matplotlib import networkx as nx import matplotlib.pyplot as plt from vedo import * from matplotlib.offsetbox import OffsetImage, AnnotationBbox G = nx.gnm_random_graph(n=10, m=15, seed=1) nxpos = nx.spring_layout(G, dim=3, seed=1) nxpts = [nxpos[pt] for pt in sorted(nxpos)] nx_lines = [(nxpts[i], nxpts[j]) for i, j in G.edges()] pts = Points(nxpts, r=12) edg = Lines(nx_lines).lw