Posts

Showing posts from March 6, 2019

Windows Python with Wine on Linux, but now in Docker

Image
0 Here is a recipe for trouble: because I have some hardware that can only talk to Windows Python I used Wine to run the Windows Python in Linux (Ubuntu). That worked. Now I wanted to make this solution a bit more portable and do the same thing inside a Docker container. Here is the minimal example dockerfile: FROM ubuntu:18.04 #install wine RUN apt-get update RUN dpkg --add-architecture i386 RUN apt-get install -y software-properties-common wget unzip RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key && apt-key add winehq.key && apt update RUN apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' RUN apt-get update RUN apt-get install -y --install-recommends winehq-stable RUN wine wineboot --init #now get python RUN wget https://www.pyt

How to use Exclusions in ContourPlot?

Image
3 $begingroup$ I want to achieve this effect: then, I try the following code: p = ContourPlot[(x - 2)^2 + y^2 == 1, {x, 1, 3}, {y, -1, 1}, Axes -> True, Frame -> False, AxesOrigin -> {0, 0}, PlotRange -> All, AspectRatio -> Automatic, Exclusions -> {x <= 2 || y <= 0}, ExclusionsStyle -> Dashed] however, it didn't work. How to do? plotting share | improve this question edited Feb 7 at 9:57 Carl Lange 4,143 1 7 35 asked Feb 7 at 9:37 Facet Fac