# \[WIP] Visualize data

`Drake` could call python functions. So we could use matplotlib in python to create data plots.

This piece of tool is used for translating the function call in C++ into python and transmit some data format as well. We need to run the `call_python_client_cli` to enable this feature.

```
cd drake
bazel build //common/proto:call_python_client_cli //common/proto:call_python_server_test
# Create default pipe file.
rm -f /tmp/python_rpc && mkfifo /tmp/python_rpc
# Run the translation software.
./bazel-bin/common/proto/call_python_client_cli
```

So in our code, we could use this service and call `plot` in python to draw figures.

```
```

So we could see the tool receive the python function call request and data passed with this request. A figure pop up after the plot command. This is how we plot data in `Drake`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://drake.guzhaoyuan.com/thing-to-do-in-drake/wip-visualize-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
