This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Piotr Krysik gerrit-no-reply at lists.osmocom.orgPiotr Krysik has uploaded this change for review. ( https://gerrit.osmocom.org/13474 Change subject: Improve slightly interface of plotting so it's easier to use it ...................................................................... Improve slightly interface of plotting so it's easier to use it Change-Id: Ia70ab45a8beb81512a9f83e316ad2d2bc385ef19 --- M include/grgsm/plotting.hpp 1 file changed, 6 insertions(+), 6 deletions(-) git pull ssh://gerrit.osmocom.org:29418/gr-gsm refs/changes/74/13474/1 diff --git a/include/grgsm/plotting.hpp b/include/grgsm/plotting.hpp index 21890e4..d4e6933 100644 --- a/include/grgsm/plotting.hpp +++ b/include/grgsm/plotting.hpp @@ -31,7 +31,7 @@ boost::shared_ptr<Gnuplot> current_figure; -void imagesc(arma::mat & x){ +void imagesc(const arma::mat & x){ Gnuplot gp; gp << "set palette rgb 3,2,2;"; gp << "plot "; @@ -39,7 +39,7 @@ gp << std::endl; } -void plot(arma::cx_mat & x, std::string title){ +void plot(const arma::cx_mat & x, std::string title){ arma::mat y = arma::abs(x); if(current_figure.get()==NULL){ current_figure = boost::make_shared<Gnuplot>(); @@ -50,7 +50,7 @@ (*current_figure) << std::endl; } -void replot(arma::cx_mat & x, std::string title){ +void replot(const arma::cx_mat & x, std::string title){ arma::mat y = arma::abs(x); if(current_figure.get()==NULL){ current_figure = boost::make_shared<Gnuplot>(); @@ -61,19 +61,19 @@ } template<typename T> -void plot(std::vector<T> & x){ +void plot(const std::vector<T> & x){ arma::cx_mat y = arma::conv_to<arma::cx_mat>::from(x); plot(y,""); } template<typename T> -void plot(std::vector<T> & x, std::string title){ +void plot(const std::vector<T> & x, std::string title){ arma::cx_mat y = arma::conv_to<arma::cx_mat>::from(x); plot(y,title); } template<typename T> -void replot(std::vector<T> & x, std::string title){ +void replot(const std::vector<T> & x, std::string title){ arma::cx_mat y = arma::conv_to<arma::cx_mat>::from(x); replot(y,title); } -- To view, visit https://gerrit.osmocom.org/13474 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: gr-gsm Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ia70ab45a8beb81512a9f83e316ad2d2bc385ef19 Gerrit-Change-Number: 13474 Gerrit-PatchSet: 1 Gerrit-Owner: Piotr Krysik <ptrkrysik at gmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190401/b0b500a9/attachment.htm>