{ "cells": [ { "cell_type": "markdown", "source": [ "# Plot in Grid\n", "\n", "Multiple dose-response curves can also be plotted in a grid format. This is achieved using the grid_curve_plot() method.\n", "\n", "First, import the necessary packages. Import the example dataset and instantiate it into the PlotCurve() class." ], "metadata": { "collapsed": false }, "id": "38c52610c1bce39a" }, { "cell_type": "code", "id": "initial_id", "metadata": { "collapsed": true, "ExecuteTime": { "end_time": "2026-05-21T04:12:09.610128Z", "start_time": "2026-05-21T04:12:08.479561Z" } }, "source": [ "import pandas as pd\n", "from py50 import PlotCurve, CBPALETTE" ], "outputs": [], "execution_count": 1 }, { "cell_type": "code", "source": [ "df = pd.read_csv('../dataset/multiple_example.csv')\n", "data = PlotCurve(df)\n", "data.show(2)" ], "metadata": { "collapsed": false, "ExecuteTime": { "end_time": "2026-05-21T04:12:09.638033Z", "start_time": "2026-05-21T04:12:09.613360Z" } }, "id": "378e2cb32f4a6c84", "outputs": [ { "data": { "text/plain": [ " Compound Name Compound Conc % Inhibition 1 % Inhibition 2 \\\n", "0 Drug 1 100000.0 90 94 \n", "1 Drug 1 33300.0 97 89 \n", "\n", " % Inhibition Avg \n", "0 92.0 \n", "1 93.0 " ], "text/html": [ "
| \n", " | Compound Name | \n", "Compound Conc | \n", "% Inhibition 1 | \n", "% Inhibition 2 | \n", "% Inhibition Avg | \n", "
|---|---|---|---|---|---|
| 0 | \n", "Drug 1 | \n", "100000.0 | \n", "90 | \n", "94 | \n", "92.0 | \n", "
| 1 | \n", "Drug 1 | \n", "33300.0 | \n", "97 | \n", "89 | \n", "93.0 | \n", "