---
name: "apop_plot_query"
section: "1"
platform: "linux"
package: "apophenia-bin"
version: "1.0+ds-10"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/apop_plot_query"
---

# apop\_plot\_query(1)

command line utility to take in a query and put out a Gnuplot table file

## NAME

apop\_plot\_query - command line utility to take in a query and put out a Gnuplot table file

## SYNOPSIS

**apop\_plot\_query** \[*opts*\] *dbname query*

## DESCRIPTION

Runs a query, and pipes the output directly to gnuplot. Use **-f** to dump to stdout or a file.

- **-d**

  database to use (mandatory)

- **-q**

  query to run (mandatory or use **-Q**)

- **-Q**

  file from which to read the query

- **-n**

  no plot: just run the query and display results to stdout

- **-t**

  plot type (points, bars, ...) (default: "lines")

- **-H**

  plot histogram with this many bins (e.g., **-H100**) (to let the system auto-select bin sizes, use **-H0**)

- **-f**

  file to dump to. If **-f-** then use stdout (default: pipe to Gnuplot)

- **-h**

  display this help and exit
