rendering two graphs